In this tutorial I will show you how to check version of PHP on your site.
The PHP version for each site is displayed on the (Panel > ‘Domains’ > ‘Manage Domains’) page.
There, you’ll see a setting which lists the current PHP version for the domain (under the ‘Web Hosting’ column):
PHP also has a special function that can retrieve information about a particular installation of itself, and the environment in which it has been installed. To retrieve this information, all you have to do is save the following in a text file with a .php extension, upload the file to a web server, and then view it with a conventional web browser.
For example, you can create a file called phpinfo.php with the following content and then view it at example.com/phpinfo.php:
<?php phpinfo(); ?>
Once you visit the page, the following results appear:
- information about PHP compilation options and extensions
- the PHP version
- server information and environment (if compiled as a module)
- the PHP environment
- OS version information
- master and local values of configuration options
- HTTP headers, and
- the PHP License.