How to check the version of PHP ?

To verify the update is working create a simple testphp.php in your www directory with the following source code:

and open it in a web browser. The new PHP version should be reflected at the top of the page.


ssh into the server or run the follwing command in terminal

php -v