php-config

php-config is a simple shell script for obtaining information about the
installed PHP configuration.

When compiling extensions, if you have multiple PHP versions installed, you
may specify for which installation you'd like to build by using the
--with-php-config option during configuration, specifying
the path of the respective php-config script.

The list of command line options provided by the php-config script can be queried
anytime by running php-config with the -h
switch: