Statistics · Info
WordPress PHP Compatibility: Which Versions Work
Short answer
WordPress 7.0 and 7.1 work with PHP 7.4 through 8.5, and WordPress.org recommends PHP 8.3 or newer as of November 2026. PHP 8.2, 8.3, 8.4 and 8.5 still receive security fixes, while PHP 8.1 and older are end of life. Pick 8.3 or 8.4 for most sites, since both are widely used and patched for years.
Key takeaways
- WordPress.org recommends PHP 8.3 or newer as of November 2026, and WordPress 7.0 and 7.1 support PHP 7.4 through 8.5.
- PHP 8.2 stops receiving security fixes on 31 December 2026, while PHP 8.3 is patched until 31 December 2027.
- PHP 8.1, 8.0 and 7.4 are already end of life, so they receive no security fixes from php.net.
- WordPress 7.0 dropped support for PHP 7.2 and 7.3, so those versions cannot run current WordPress.
- PHP 8.5, released 20 November 2025, gets active support until 31 December 2027 and security fixes until 31 December 2029.
- Core support does not cover themes and plugins, so check them before you change PHP versions.
Which PHP versions work with WordPress?
WordPress 7.1 and 7.0 run on PHP 7.4 through 8.5, according to the WordPress core handbook (checked November 2026).
PHP compatibility means a WordPress version has been tested against a PHP version and marked as working. The core handbook publishes a table of these pairings for every recent WordPress release, and it is the official record to check before you upgrade either side.
WordPress is written in PHP, so the PHP version on your server decides which WordPress versions can run at all. Your host sets the PHP version, not WordPress itself, and you cannot change it from a setting inside wp-admin.
Which PHP version does WordPress recommend?
WordPress.org recommends PHP 8.3 or greater, as of November 2026.
The recommendation comes from the Requirements page on WordPress.org. It sits next to the database recommendation: MariaDB 10.11 or greater, or MySQL 8.4 or greater, plus HTTPS support.
That recommendation is a floor for new sites, not a guess about speed. If you are setting up a site or picking a host, ask for 8.3 or 8.4, since both still receive security fixes for years. Our which PHP version to use guide looks at the same choice.
Which PHP versions are end of life as of November 2026?
PHP 8.1 and every older branch are end of life, as of November 2026.
The unsupported branches list on php.net gives the dates. PHP 8.1 reached end of life on 31 December 2025, with 8.1.34 as its last release. PHP 8.0 ended on 26 November 2023, and PHP 7.4 ended on 28 November 2022.
End of life means php.net ships no more fixes for that branch, not even for security flaws found later. PHP 7.3 ended on 6 December 2021 and PHP 7.2 on 30 November 2020, so both have been unpatched for years. A site still on one of these versions runs code nobody maintains.
How long does each PHP version get security fixes?
Each PHP branch gets 2 years of active support, then 2 more years of security fixes only.
The supported versions page on php.net sets out the schedule. During active support, reported bugs and security issues are fixed in regular point releases. During the security-only period, releases come only as needed for critical issues.
| PHP version | Active support until | Security fixes until | Status in November 2026 |
|---|---|---|---|
| 8.2 | 31 December 2024 | 31 December 2026 | Security fixes only |
| 8.3 | 31 December 2025 | 31 December 2027 | Security fixes only |
| 8.4 | 31 December 2026 | 31 December 2028 | Active support |
| 8.5 | 31 December 2027 | 31 December 2029 | Active support |
PHP 8.2 is the branch to watch first. Its security support ends on 31 December 2026, about 6 weeks after this guide was checked. PHP 8.3 runs a year longer, until 31 December 2027, and PHP 8.4 until 31 December 2028.
Which WordPress versions support which PHP versions?
WordPress 7.0 and 7.1 support PHP 7.4 through 8.5, while older WordPress releases stop earlier.
The PHP Compatibility and WordPress Versions page in the core handbook lists every pairing. WordPress aims to support each new PHP version in the major WordPress release that lands around the same time as the PHP release in November each year.
| WordPress version | Lowest PHP | Highest PHP |
|---|---|---|
| 7.1 | 7.4 | 8.5 |
| 7.0 | 7.4 | 8.5 |
| 6.9 | 7.2 | 8.5 |
| 6.8 | 7.2 | 8.4 |
| 6.7 | 7.2 | 8.4 |
| 6.6 | 7.2 | 8.3 |
WordPress 7.0 dropped support for PHP 7.2 and 7.3, so a site on either version must move to PHP 7.4 or newer before it can run WordPress 7.0. WordPress 6.9 added support for PHP 8.5, and WordPress 6.7 added support for PHP 8.4.
The handbook once used labels such as “beta support” and “compatible with exceptions” for new PHP versions. The “compatible with exceptions” label was retired in April 2025, and the “beta support” label was retired in May 2026, so the table now records a plain yes or no for each pairing.
How do you check the PHP version your site runs?
Open Tools, then Site Health, then the Info tab, and expand the Server section to see your PHP version.
Site Health is built into WordPress, and the Server section lists the PHP version your site actually runs. That number is the one that matters, since the version your host shows in its panel can differ from the version serving your site.
If the number is 8.1 or lower, plan a move. The steps are in our guide on how to update the PHP version in WordPress, and your host can usually change the version for you if its panel does not offer the choice.
What happens if your site runs an end-of-life PHP version?
Your site keeps working, but new security flaws in PHP will never be fixed for it.
WordPress.org's Requirements page states the risk plainly: WordPress also works with PHP 7.4 and MySQL 5.5.5, but these versions have reached their official end of life and may expose your site to security vulnerabilities.
Old PHP is still common: W3Techs reported on 19 November 2026 that PHP version 7 runs on 24.6% of PHP websites and version 5 on 7.3%, though every branch of both is end of life, while version 8 runs on 68.1%. Our PHP version usage statistics guide breaks down the spread.
The ServeHappy project exists to push sites off old PHP. It is the WordPress PHP education initiative, and its goal is to raise the share of installs running a modern PHP version, as its project page explains.
Should you move to PHP 8.5 right away?
PHP 8.5 is the newest supported version, but 8.3 or 8.4 is the safer pick for most sites in November 2026.
PHP 8.5 was released on 20 November 2025, and WordPress 6.9 and later support it. It gets active support until 31 December 2027 and security fixes until 31 December 2029, the longest runway of any branch.
Newer is not always better on day one. Plugin and theme authors need time to catch up with each PHP release, so a brand-new branch can surface faults that older branches have already had fixed. PHP 8.4 gives you security fixes until 31 December 2028 with a year of real-world use behind it.
If your site already runs PHP 8.4, there is no rush to jump to 8.5. If it runs PHP 8.2, move to 8.3 or 8.4 before 31 December 2026, when 8.2 loses security support. See does WordPress support PHP 8.4 for the details on that version.
Does WordPress core support mean your plugins and themes work too?
No, core support covers WordPress itself only, not your themes, plugins or custom code.
The core handbook notes that WordPress is rarely used in isolation, without any theme or plugins. A pairing marked “Y” in the compatibility table means core was tested on that PHP version. It says nothing about the 30 plugins on your site.
Each plugin sets its own minimum PHP version in its readme, and WordPress blocks activation when a plugin needs a newer PHP version than the server runs. Before you change PHP versions, check the requirements of your most important plugins and your theme, and keep a backup you can restore.
A PHP change can also outlive the WordPress version that caused it. WordPress versions stay supported for years after release, so a site that jumps to PHP 8.4 today should still be in good shape when the next WordPress release lands. Our guide on how long a WordPress version is supported covers that timeline.
What mistakes should you avoid?
The most common mistake is treating “it runs” as “it is supported.”
Avoid these errors:
- Staying on PHP 8.1 or 7.4 because the site still loads. Loading is not support, and no fixes are coming for those branches.
- Picking the newest PHP version on a live site without checking plugins first. Core support does not cover them.
- Changing PHP and WordPress at the same time. Change one, check the site, then change the other, so you know which change caused any fault.
- Assuming the host panel version is the site version. Check Site Health, as shown above, for the version your site actually runs.
- Waiting until 31 December 2026 to leave PHP 8.2. Hosts get busy at year end, and the security fixes stop on that date whether you have moved or not.
Frequently asked questions
Can WordPress run on PHP 7.4?
Yes. WordPress 7.0 and 7.1 accept PHP 7.4, which is the lowest version they run on. But PHP 7.4 reached end of life on 28 November 2022, so it receives no security fixes, and WordPress.org warns it may expose your site to security vulnerabilities. Move to PHP 8.3 or 8.4 as soon as you can.
Is PHP 8.2 still safe to use for WordPress?
PHP 8.2 is safe until its security support ends on 31 December 2026. After that date php.net will ship no more fixes for it, even for serious flaws. WordPress 7.0 and 7.1 support PHP 8.2, but you should plan a move to PHP 8.3 or 8.4 before the end of December 2026.
Does WordPress support PHP 8.5?
Yes. The core handbook lists WordPress 6.9, 7.0 and 7.1 as compatible with PHP 8.5, which was released on 20 November 2025. It gets active support until 31 December 2027 and security fixes until 31 December 2029. Check your plugins and theme first, since core support does not cover them.
What is the minimum PHP version for WordPress?
WordPress 7.0 and 7.1 need PHP 7.4 or newer, and WordPress.org states that WordPress requires PHP 7.4 or higher. Older WordPress releases accepted lower versions, but WordPress 7.0 dropped support for PHP 7.2 and 7.3. The recommended version is PHP 8.3 or greater.
How often does PHP release a new version?
PHP ships a major release each year, usually in November, and WordPress aims to support it in the major WordPress release that lands around the same time. Each PHP branch then gets 2 years of active support followed by 2 years of security fixes only, for 4 years of support in total.
Will updating PHP break my WordPress site?
WordPress core is tested against every PHP version in the compatibility table, so core itself should keep working. The risk sits with themes, plugins and custom code, which may use features that a newer PHP version removed or changed. Back up the site first, check plugin requirements, and change PHP on its own rather than at the same time as a WordPress update.
Sources
- Requirements WordPress.org
- PHP Compatibility and WordPress Versions Make WordPress Core
- Supported Versions PHP.net
- Unsupported Branches PHP.net
- Usage Statistics and Market Share of PHP for Websites, November 2026 W3Techs
- WordPress/servehappy GitHub
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
