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:
Start by creating a new text file that contains the following line:
<?php phpinfo(); ?>
Save this file as info.php
Upload your info.php file to the root of your website.
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:
You will now be shown which version of PHP is running on your website, along with any installed PHP modules.