Checking the PHP version Linux

To get all information about PHP :

 php -i 

To get only specific version of PHP

 php -v