You can get the configuration options for how PHP was built on the command line using php-config. It displays other helpful items as well.
php-config
php-config --configure-options