How to check your website’s PHP version

Search another help topic

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

  1. Log in to the Ecenica Dashboard and open your hosting service.
  2. Click Select PHP Version.
  3. Open the dropdown and look for the version marked (current). You can close the page without clicking Apply.

Check your PHP version in WordPress

  1. Log in to the WordPress dashboard for the site you want to check.
  2. Go to Tools → Site Health → Info.
  3. Expand Server and look for PHP version.

Check your website’s PHP version with phpinfo()

  1. In your hosting file manager, create a temporary file named php-version-check.php in the document root of the website you want to check. This is the folder that contains the site’s public files.
  2. Add this code and save the file:
    <?php
    phpinfo(INFO_GENERAL);
  3. Open the file in your browser by adding /php-version-check.php to your website’s address. Read the PHP version at the top of the page.
  4. 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.

Need help with this?

Open a ticket and link to this guide so our team can see what you have tried.

View support tickets

Power your business with Ecenica Hosting

Built for WordPress and serious websites. Fast, secure and supported by real people in the UK.

Ecenica hosting services represented by a connected red route across London