Get PHP loaded modules
General command:
php -m
Alternative:
php -r 'print_r(get_loaded_extensions());'
Alternative with version print:
php -r 'phpinfo(INFO_MODULES);'