Skip to content
PHP Version Checker
WordPress

WordPress PHP Version: Requirements and How to Check

WordPress runs on PHP, and the minimum PHP version depends on the WordPress release. Plugins and themes can require a newer version still. This page explains the current requirements, how to check both versions, and how to read the result for a public WordPress site.

WP 7.1 requires PHP 7.4+Minimum is not a targetPlugins may need newer

Free checker

Check a WordPress site's PHP version

Paste a public URL. The checker reads the homepage headers and markup, detects WordPress when the generator meta or WordPress paths are visible, and compares the exposed PHP version with the official support and PHP2Shell data.

Try an example:

Free · No sign-up · We never store the URLs you check

A detected WordPress version and its minimum PHP requirement are an inference. They are not the PHP version installed on the server.

Requirements

WordPress releases and their minimum PHP version

WordPress core raises its minimum PHP requirement over time. The table below is based on the version file shipped with each core release. A minimum is a floor, not a compatibility guarantee.

Swipe horizontally to see all columns.

WordPress versions and their minimum PHP requirements
WordPress versionsMinimum PHPNotes
7.0–7.17.4Current minimum. WordPress 7.1 is the latest checked release.
6.7–6.97.2.24PHP 7.2.24 minimum.
6.3–6.67.0.0PHP 7.0 minimum.
5.2–6.25.6.20PHP 5.6.20 minimum.
Older than 5.25.2.4Not recommended for a public site.
Sources: WordPress core wp-includes/version.php and wordpress.org requirements. Plugins and themes may declare a higher requirement in their headers.

Checking your site

How to check your WordPress PHP version

Use the method that matches the access you have. If you can log in to WordPress, Site Health is usually the fastest. If you have a hosting panel, the PHP selector is authoritative for the web server.

WordPress Site Health

  1. Log in to the WordPress admin.
  2. Go to Tools → Site Health.
  3. Open the Info tab, then Server.
  4. Find the PHP version in the list.

The WordPress version appears under Info → WordPress.

Hosting panel

  • cPanel: Select PHP Version or MultiPHP Manager.
  • Plesk: Websites & Domains → PHP Settings.
  • Managed WordPress hosting: open the site dashboard and look for the PHP version or tools section.

Switch versions only after testing on staging.

Command line or PHP file

php -v

For the web server, upload a temporary file containing:

<?php echo PHP_VERSION; ?>

Visit it, note the version, then delete it immediately. Only do this on a site you control. The CLI and web versions can differ.

WordPress version

How to check your WordPress version

The WordPress version is different from the PHP version. Check it in Dashboard → Updates or in Tools → Site Health → Info → WordPress. If you have WP-CLI, run wp core version.

There is no reliable public WordPress version checker for every site: the admin methods are definitive, while a public generator tag is optional and often removed. The checker uses that tag when it is present. If it is missing, the checker can still detect WordPress from /wp-content/ and /wp-json/ paths, but it cannot infer the WordPress version or its minimum PHP requirement.

Which PHP version should WordPress use?

Use a supported PHP branch. The WordPress minimum is a floor, not a target: WordPress 7.1 requires PHP 7.4, but running the minimum may leave you on an older branch with a shorter support window.

Choose the newest branch that your host, plugins, and theme support. Test on staging, read plugin “Requires PHP” headers, and check the support dates before switching. PHP 8.2 reaches end of life on 31 December 2026, so a site on 8.2 should plan an upgrade now.

A WordPress site on PHP 8.1 or older is running an unsupported branch. Upgrading PHP is one of the highest-value maintenance tasks you can do.

PHP2Shell and WordPress

PHP2Shell is a vulnerability in the PHP runtime, not in WordPress, a plugin, or a theme. Updating WordPress alone does not fix it. If a WordPress site runs on an affected PHP version, the PHP binary must be updated and the PHP-FPM, Apache, or container workers restarted.

The checker shows whether the PHP version it can see is below the first fixed release. If the version is hidden, the result panel explains how to check it directly. A patched PHP version is important, but it is still only one part of WordPress security: keep core, plugins, themes, and hosting updated too.

FAQ

WordPress PHP questions

Short answers about WordPress requirements, checking versions, and planning an upgrade.

Official references

Minimum requirements are not a compatibility guarantee. A supported PHP branch does not by itself prove that a WordPress site is secure.

Check another WordPress site

The checker is free and does not require an account.

Back to the PHP version checker