In order to determine the version of PHP running on your shared server, you can create and upload a simple PHP file to display this information via the web. The file is known as a PHP info page which outputs information regarding the version, extensions, and configuration options.
To create the PHP info page, make a new text file and add the following lines
phpinfo();
?>
Save your file as a .php file and name it whatever you would like, such as myTest.php. You can now upload this file into your hosting account’s home directory via FTP. Visit the PHP info page in your browser, i.e. http://mydomain.com/myTest.php.
For security reasons, we recommend that you delete this file once you are finished reviewing the PHP information.