Get version
php --version
(for debuging) 😃 Run the following script. Either by cli or get through a webserver, like for wordpress debuging with Doctor.
<?php var_dump($_SERVER); ?>
Get available modules
php -m