WordPress PHP Versions: Requirements, How to Check and How to Upgrade Safely
WordPress PHP Versions: Requirements, How to Check and How to Upgrade Safely

WordPress is written in PHP, so the PHP version your server runs affects your site's security, compatibility and speed. It is also one of the most neglected settings on business websites, because it lives in the hosting account rather than the WordPress dashboard.
As of October 2026, WordPress needs PHP 7.4 or later. That minimum was raised in WordPress 7.0 (20 May 2026), which dropped support for PHP 7.2 and 7.3. The official recommendation is PHP 8.3 or greater, and WordPress 7.1 is documented as fully compatible with PHP 7.4 through 8.5.
The catch is that "WordPress supports it" is not the same as "it is safe." PHP 7.4, 8.0 and 8.1 no longer receive security fixes from the PHP project, and WordPress supports them only for backward compatibility. Your plugins and theme also have to support the version you choose.
This guide covers the current requirements, how to check your version, how to test compatibility and how to upgrade without breaking your site.
Key Takeaways
- Since WordPress 7.0, the minimum is PHP 7.4; PHP 7.2 and 7.3 are no longer supported by current WordPress.
- WordPress.org recommends PHP 8.3 or greater, and its hosting handbook suggests 8.4 or 8.5 for new installs.
- PHP 7.4, 8.0 and 8.1 are end of life upstream; PHP 8.2 receives security fixes only until 31 December 2026.
- Check your version under Tools > Site Health > Info > Server, and change it in your hosting control panel or through your host.
- Always back up and test on staging first, because old plugins and themes are what usually break.
Current WordPress PHP requirements
WordPress publishes two different numbers, and they are often confused.
- Minimum: the oldest PHP version WordPress will run on. According to the WordPress 7.1 hosting handbook page, the minimum is PHP 7.4, with MySQL 5.5.5 or MariaDB 5.5.5. WordPress 7.0 "raised the minimum PHP version from 7.2.24 to 7.4."
- Recommended: what WordPress.org suggests you actually run. The requirements page recommends PHP 8.3 or greater, MySQL 8.0 or greater (or MariaDB 10.11 or greater) and HTTPS support. The hosting handbook goes further and recommends PHP 8.4.x or 8.5.x for new installs.
Two common misunderstandings to avoid. First, WordPress 7.0 did not raise the MySQL minimum to 8.0; 5.5.5 is still the minimum and 8.0 is only recommended. Second, PHP 8.x is no longer labelled "beta support." In May 2026 the core team clarified that WordPress 6.9 and 7.0 fully support PHP 8.5 and retired the beta label.
Sites stuck on PHP 7.2 or 7.3 cannot update to WordPress 7.x. According to the core team's January 2026 announcement, they remain on the 6.9 branch. Only the newest branch officially receives security updates; fixes are backported to older branches as a courtesy when possible.
PHP version support status
The PHP project supports each version for about four years: two years of active support with bug fixes, then two years of security fixes only. The table combines the PHP project's supported versions page with WordPress's compatibility notes, as of October 2026.
| PHP version | PHP security support ends | Status in October 2026 | WordPress 7.1 |
|---|---|---|---|
| 7.2 | 30 Nov 2020 | End of life | Not supported (dropped in 7.0) |
| 7.3 | 6 Dec 2021 | End of life | Not supported (dropped in 7.0) |
| 7.4 | 28 Nov 2022 | End of life | Minimum; backward compatibility only |
| 8.0 | 26 Nov 2023 | End of life | Backward compatibility only |
| 8.1 | 31 Dec 2025 | End of life | Backward compatibility only |
| 8.2 | 31 Dec 2026 | Security fixes only, ending soon | Fully compatible |
| 8.3 | 31 Dec 2027 | Security fixes only | Fully compatible (recommended minimum) |
| 8.4 | 31 Dec 2028 | Active support | Fully compatible |
| 8.5 | 31 Dec 2029 | Active support | Fully compatible |
If your site is on PHP 8.2, plan an upgrade now: its security support ends on 31 December 2026.
Why old PHP is a risk
- No security patches. Once a PHP version reaches end of life, newly found vulnerabilities in PHP itself are not fixed by the PHP project. Some hosts backport fixes, but you depend entirely on them.
- You get stuck on old WordPress. Every time WordPress raises its minimum, sites below it stop receiving new versions.
- Plugins move on. Plugin authors list a "Requires PHP" value on WordPress.org, and many now require newer versions. When an update needs a newer PHP than your server has, WordPress shows that it "does not work with your version of PHP" and will not install it, so you can end up stuck on an old, vulnerable plugin version. Plugins accounted for 91% of the 11,334 new WordPress ecosystem vulnerabilities Patchstack counted in 2025.
- Performance. Newer PHP versions include engine improvements. The size of the gain depends on the site, so test rather than expect a specific number.
Our WordPress security guide explains how PHP fits with the rest of your security setup.
How to check your PHP version
- In the WordPress dashboard, go to Tools > Site Health.
- Open the Info tab and expand Server. The PHP version is listed there.
- The Status tab also flags an outdated PHP version as a recommended improvement.
WordPress.org's Update PHP page says that if you see PHP 8.3 or higher, no update is needed. You can also see the version in your hosting control panel, or with php -v over SSH, though the command-line PHP can differ from the version serving your website.
How to test compatibility before upgrading
PHP upgrades rarely break WordPress core. They break old plugins, old themes and custom code. Test before switching live:
- Update everything first. WordPress.org's advice is to update WordPress, plugins and themes before changing PHP. Current versions are far more likely to support new PHP.
- Check each plugin's "Requires PHP" and last-updated date on WordPress.org. A plugin not updated in years is the most likely problem.
- Clone the site to staging and switch staging to the new PHP version. See our staging sites guide.
- Turn on logging on staging with WP_DEBUG and WP_DEBUG_LOG, then click through the site: home page, forms, search, login, checkout and admin screens. Read the log for errors, warnings and deprecation notices.
- Fix or replace anything that fails. Contact the developer, update custom code, or switch to a maintained alternative.
Static scanning tools can help, but use them with care. WordPress.org's Update PHP page mentions the PHP Compatibility Checker plugin. As of October 2026 its directory listing shows it tested only up to WordPress 6.4, so treat its results as a hint, not a verdict, and rely on real testing on staging. A quick alternative for a single plugin is to try it in WordPress Playground, which lets you choose the PHP version.
How to upgrade PHP
PHP runs on the server, so you change it through your host, not inside WordPress:
- Control panel: most hosts have a PHP version selector in cPanel, Plesk or their own dashboard.
- Managed WordPress hosts usually have a per-site PHP setting, and many upgrade PHP for you on a schedule, with notice.
- VPS or dedicated servers: you or your sysadmin install the new PHP version and switch the web server to it, including the extensions WordPress needs.
- No option available? Ask your host. If they cannot offer a supported PHP version, that is a strong reason to move. Our WordPress hosting types guide explains the options.
Treat a PHP change like any other platform upgrade, following the same discipline as version upgrades for CMS themes and plugins. Before switching live, take a full backup. Our WordPress backups guide explains what to include.
What to do if the upgrade breaks something
- Switch back. The quickest fix is to set PHP back to the previous version in your control panel. WordPress.org recommends this, or asking your host or a developer for help.
- Read the error. A "critical error" message usually comes with an email to the admin that names the failing plugin or theme, plus a recovery mode link. Our troubleshooting guide covers this.
- Isolate the cause on staging by deactivating plugins one at a time.
- Do not stay on the old version forever. Treat the rollback as temporary and fix the incompatible component.
PHP settings that matter besides the version
The version is not the only PHP setting that affects WordPress:
- Memory limit: WordPress tries to raise PHP memory to 40MB for single sites and 64MB for multisite by default, set with WP_MEMORY_LIMIT. Large sites, page builders and WooCommerce often need more, which your host's PHP limit must allow.
- Max execution time and upload size: these affect imports, backups and large media uploads.
- Extensions: WordPress relies on PHP extensions such as those for MySQL, image processing and encryption. Site Health lists missing recommended modules.
- OPcache: caches compiled PHP and is normally enabled by good hosts.
Conclusion
As of October 2026, WordPress requires PHP 7.4 or later, recommends 8.3 or greater, and fully supports up to 8.5. Because PHP 7.4 through 8.1 are end of life and 8.2's security support ends this year, most sites should be on 8.3 or newer. Check Site Health, update your plugins, test on staging, then switch. More guides live in our WordPress hub, and eSEOspace handles PHP upgrades as part of its website maintenance services.
Frequently asked questions
What PHP version does WordPress require in 2026?
The minimum is PHP 7.4, raised in WordPress 7.0. WordPress.org recommends PHP 8.3 or greater, and its hosting handbook recommends 8.4 or 8.5 for new installs.
Does WordPress support PHP 8.5?
Yes. WordPress 7.1 is documented as fully compatible with PHP 7.4 through 8.5, and the core team confirmed in May 2026 that 6.9 and 7.0 fully support PHP 8.5. Your plugins and theme still need to support it, so test first.
Can upgrading PHP break my site?
It can, usually because of an outdated plugin, theme or custom code rather than WordPress core. Back up, update everything, and test on staging before switching the live site.
My host only offers PHP 7.4. What should I do?
Your site can still run current WordPress, but PHP 7.4 is end of life and many plugins now require newer versions. Ask your host for a supported version, and if they cannot provide one, plan a move.
Where do I change the PHP version?
In your hosting account, usually a PHP version selector in the control panel or a per-site setting on managed hosting. WordPress itself cannot change the server's PHP version.
Put this into action with eSEOspace
We help businesses grow with website design that actually performs. Explore the services behind this guide:
Get a FREE Audit
We'll perform a comprehensive SEO, AEO, GEO & CRO audit of your website — completely free — and show you exactly how to outrank your competitors.
Don't have a site yet? Get in touch →
Get a FREE GEO/AEO/SEO Audit
We'll analyze your site's SEO, GEO, AEO & CRO — completely free — and show you exactly how to get found across Google and AI answers.
Don't have a site yet? Get in touch →
Great — your audit is on the way!
We'll send your free SEO/GEO/AEO/CRO audit within the next few hours. Where should we send it?
You're all set! ✓
Your free audit is being prepared — check your inbox in the next few hours. Talk soon!
On this page
- Key Takeaways
- Current WordPress PHP requirements
- PHP version support status
- Why old PHP is a risk
- How to check your PHP version
- How to test compatibility before upgrading
- How to upgrade PHP
- What to do if the upgrade breaks something
- PHP settings that matter besides the version
- Conclusion
- Frequently asked questions





