Find my PHP version using phpinfo
This article will show you how to find your PHP version within your Virtual Private Server.
By uploading a PHP script into your website, you can easily find out what PHP version you’re using. Simply follow the steps outlined below:
Step 1 of 5
Start by creating a new text file that contains the following line:
<?php phpinfo(); ?>
Step 2 of 5
Save this file as info.php
Step 3 of 5
Upload your info.php file to the root of your website.
Step 4 of 5
After you’ve done this, copy this URL into your browser bar and change ‘your-domain-name’ to the domain that’s associated with your website:
http://your-domain-name/info.php’
Step 5 of 5
You will now be shown which version of PHP is running on your website, along with any installed PHP modules.