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):
Some DreamPress sites may show the PHP version as 'PHP-FPM'. Use the phpinfo.php example below to confirm the version number.
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.