which php - will locate the php executable (this should be the default php used by you)
If you want to find out the php version, then php -v will print the php version in the CLI and any Zend modules installed.
php -v
PHP 5.6.30 (cli) (built: Mar 11 2017 09:56:27)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
If you want to find out the ini files included then php --ini will display th list of ini files loaded by the php module (this applies for the CLI version).
which php - will locate the php executable (this should be the default php used by you)
If you want to find out the php version, then php -v will print the php version in the CLI and any Zend modules installed.
If you want to find out the ini files included then php --ini will display th list of ini files loaded by the php module (this applies for the CLI version).