Use the Ecenica Dashboard to see your selected PHP version. To confirm the version running on a specific website, check WordPress Site Health or run a temporary PHP file on that site.
Check your PHP version in the Ecenica Dashboard
- Log in to the Ecenica Dashboard and open your hosting service.
- Click Select PHP Version.
- Open the dropdown and look for the version marked (current). You can close the page without clicking Apply.
Check your PHP version in WordPress
- Log in to the WordPress dashboard for the site you want to check.
- Go to Tools → Site Health → Info.
- Expand Server and look for PHP version.
Check your website’s PHP version with phpinfo()
- In your hosting file manager, create a temporary file named
php-version-check.phpin the document root of the website you want to check. This is the folder that contains the site’s public files. - Add this code and save the file:
<?php phpinfo(INFO_GENERAL); - Open the file in your browser by adding
/php-version-check.phpto your website’s address. Read the PHP version at the top of the page. - Delete the file as soon as you’ve checked the version, as it exposes server details.
Check the command-line PHP version with Terminal or SSH
If your hosting plan includes Terminal or SSH access, open a terminal on your hosting server and run:
php -v
The first line shows the version of PHP used by that terminal. Your website can run a different version. Use WordPress Site Health or the browser check above to confirm the website’s version.
If you need to switch versions, follow our guide to changing your PHP version.