Hosting · Explainer
Which PHP Version Should You Use for WordPress?
Short answer
Use PHP 8.4 for most WordPress sites as of November 2026, because it is in active support and receives security fixes until 31 December 2028. Use PHP 8.3 if a plugin or theme is not ready for 8.4, since WordPress recommends PHP 8.3 or newer. Move off PHP 8.2 before 31 December 2026, when its security fixes end.
Key takeaways
- WordPress recommends PHP 8.3 or newer as of November 2026, while WordPress 7.0 and 7.1 still run on PHP 7.4 or newer.
- PHP 8.4 is in active support until 31 December 2026 and receives security fixes until 31 December 2028.
- PHP 8.2 receives security fixes only until 31 December 2026, and PHP 8.1 and older receive no fixes at all.
- PHP 8.5 is in active support until 31 December 2027 and receives security fixes until 31 December 2029.
- Check your version at Tools, then Site Health, then Info, then Server, and change it in your hosting panel.
- WooCommerce 10.8 and later recommends PHP 8.3 or newer and is tested up to PHP 8.4.
What PHP version should you use for WordPress?
Use PHP 8.4 for most WordPress sites as of November 2026.
PHP 8.4 is in active support, so it receives bug fixes and security fixes in regular point releases. PHP: Supported Versions lists its active support until 31 December 2026 and its security support until 31 December 2028.
PHP 8.3 is the safe fallback when a plugin or theme is not ready for 8.4. It receives security fixes only until 31 December 2027, which still gives you more than a year of cover.
PHP 8.5 is the newest branch and has the longest support runway, with security fixes until 31 December 2029. Pick it for a new site only after you confirm that your plugins and theme support it.
What is PHP in WordPress?
PHP is the programming language that runs WordPress on your server.
Every uncached page load runs PHP code from WordPress core, your theme and your plugins. The language turns that code into the HTML your visitor sees in the browser.
PHP is not a plugin, a theme or a setting inside WordPress. Your host installs it on the server, and WordPress runs on top of it.
That is why the version matters even when WordPress itself looks fine. An old PHP branch can stop receiving security fixes while your site still loads normally.
What does WordPress officially recommend?
WordPress recommends PHP 8.3 or greater as of November 2026.
Requirements on WordPress.org lists PHP 8.3 or greater, MariaDB 10.11 or greater or MySQL 8.0 or greater, and HTTPS support. It also recommends Apache or Nginx as the web server.
The same page gives a legacy note for older servers. WordPress still runs on PHP 7.4 and MySQL 5.5.5 or newer, but those versions have reached end of life and may expose a site to security problems.
Recommended and minimum are two different numbers. The minimum tells you what will start, while the recommendation tells you what is safe to run in production.
Which PHP versions still get security fixes?
Only PHP 8.2, 8.3, 8.4 and 8.5 still receive security fixes as of November 2026.
PHP gives each branch 2 years of active support, then 2 more years of security fixes only. After those 4 years the branch reaches end of life and receives no fixes at all.
| PHP version | Released | Active support ends | Security fixes end |
|---|---|---|---|
| 8.2 | 8 December 2022 | 31 December 2024 | 31 December 2026 |
| 8.3 | 23 November 2023 | 31 December 2025 | 31 December 2027 |
| 8.4 | 21 November 2024 | 31 December 2026 | 31 December 2028 |
| 8.5 | 20 November 2025 | 31 December 2027 | 31 December 2029 |
All four dates come from PHP: Supported Versions. PHP 8.1 ended on 31 December 2025, so it receives nothing now.
The October 2026 security releases show why the branch matters as much as the number. The PHP project released fixes as 8.2.35, 8.3.36, 8.4.27 and 8.5.12 on 21 October 2026, and older branches received no matching fix.
Should you choose PHP 8.3, 8.4 or 8.5?
Choose 8.4 for most sites, 8.3 for wide plugin compatibility, and 8.5 only after you check your plugins.
PHP 8.3
PHP 8.3 is the version WordPress recommends as its minimum, and it is the choice with the widest plugin support. Its security fixes run until 31 December 2027, so it is safe for now.
Pick 8.3 when a plugin page, a theme readme or your host lists 8.3 as the highest version it supports. You can move to 8.4 later in a planned step.
PHP 8.4
PHP 8.4 is the best default for a maintained site. It is in active support until 31 December 2026, then receives security fixes until 31 December 2028.
The WordPress Hosting Handbook recommends PHP 8.4 or later for production, and WordPress 6.7 and later fully support it. That combination of active support and wide WordPress support is why it suits most sites.
PHP 8.5
PHP 8.5 has the longest runway, with active support until 31 December 2027 and security fixes until 31 December 2029. WordPress 6.9 and later fully support it.
Treat 8.5 as a new-site choice, not an automatic upgrade. Check each plugin and your theme for PHP 8.5 support first, and test the change on a staging copy.
How do you check your PHP version?
Open Tools, then Site Health, then Info, then Server in your WordPress dashboard.
The PHP version row on that screen shows the version your site actually runs. That number is the one that counts, because a server can offer more than one PHP version.
Site Health also shows the PHP memory limit, the web server and the database version on the same screen. Note all four values before you plan a change.
If Site Health shows a warning about an outdated PHP version, treat it as a task for this month. WordPress also shows a PHP Update Recommended notice on the dashboard when your version is out of date.
Does your WordPress version limit your PHP choice?
Yes, your WordPress version sets the lowest and highest PHP versions you can use.
WordPress 7.0 dropped support for PHP 7.2 and 7.3, so PHP 7.4.0 became the minimum supported version. Dropping support for PHP 7.2 and 7.3 on Make WordPress Core states that the minimum recommended version stayed at 8.3.
WordPress 7.0 and 7.1 are compatible with PHP 7.4 through 8.5. WordPress 6.9 is compatible with PHP 7.2 through 8.5, while WordPress 6.8 stops at PHP 8.4.
Update WordPress first when you plan a PHP move. A site on an old WordPress release may not support the PHP version you want, and an old release also misses security fixes of its own.
What about WooCommerce and plugins?
Check WooCommerce and each plugin separately, because core support does not cover them.
Server requirements from WooCommerce lists PHP 8.3 or greater for WooCommerce 10.8 and later, tested up to PHP 8.4. It also asks for WordPress 6.9 or greater and a WordPress memory limit of 256 MB or more.
Each plugin page on WordPress.org lists the PHP version it requires in its sidebar. Open the pages for your most important plugins before you switch, and update any plugin that lists a lower version than your target.
A plugin that has not been updated for a year or more is a warning sign. Read our guide on how to spot an abandoned plugin before you rely on it on a new PHP version.
How do you change your PHP version safely?
Change PHP in your hosting panel, after a backup and after you update WordPress, your theme and your plugins.
- Take a full backup and confirm you can restore it.
- Update WordPress, your theme and every plugin from Dashboard, then Updates.
- Test the new PHP version on a staging copy of the site.
- Switch the live site in your hosting panel, usually under a PHP Version or PHP Manager menu.
- Open Site Health again and confirm the new version, then click through key pages and forms.
PHP runs on the server, so WordPress cannot change it from inside the dashboard. If your panel has no PHP selector, ask your host to make the change.
If the site breaks after the switch, change PHP back to the old version and check the error log. A backup made on the old PHP version may need that old version to restore cleanly, so keep the old version available until the new one is confirmed.
What happens if you stay on an old PHP version?
Your site keeps loading, but security fixes stop and plugin support fades.
An end-of-life branch receives no fixes from the PHP project, even for serious flaws. The October 2026 release fixed two serious flaws in PHP 8.2, 8.3, 8.4 and 8.5 only, and PHP 8.1 and older received no fix.
Hosts also remove old versions over time, so a site on PHP 8.1 or 7.4 may be moved by the host with little warning. Plugin authors drop old PHP versions too, which blocks updates you may need.
Staying on PHP 8.2 is the least urgent case, because its fixes run until 31 December 2026. Staying on PHP 8.1 or older is urgent now, because those branches already receive nothing.
What mistakes should you avoid?
Avoid switching PHP on the live site with no backup and no staging test.
- Do not pick a PHP version only because it is the newest one on the list.
- Do not assume a plugin supports a new PHP version because WordPress core does.
- Do not ignore a Site Health warning about PHP for months.
- Do not change PHP and update plugins at the same time, because you will not know which change caused a fault.
- Do not stay on PHP 8.1 or older while you wait for a quiet week.
Plan the move in one calm step instead. Note the current version, back up, update everything, test on staging, then switch.
If speed is your main worry after the switch, read how to speed up WordPress before you change anything else.
For hosting limits that affect speed, see how to choose WordPress hosting.
Frequently asked questions
Is PHP 8.2 still safe to use for WordPress?
PHP 8.2 is safe only until 31 December 2026, when its security fixes end. It still runs WordPress 7.1, but you should plan a move to PHP 8.3 or 8.4 before that date. After the date, new flaws in PHP 8.2 will receive no fix from the PHP project.
Can I update PHP from inside the WordPress dashboard?
No, PHP is a server setting, so you change it in your hosting panel or by asking your host. The WordPress dashboard only shows the version your site runs, under Tools, then Site Health, then Info, then Server. Use that screen to confirm the change after your host applies it.
Will changing PHP break my plugins?
It can break a plugin that was written for an older PHP version, which is why you test on staging first. Update WordPress, your theme and every plugin before the switch, then check each important plugin page for its required PHP version. If one plugin is not ready, stay on PHP 8.3 until it is updated.
What PHP version does WooCommerce need?
WooCommerce 10.8 and later recommends PHP 8.3 or newer and is tested up to PHP 8.4. It also needs WordPress 6.9 or newer and a WordPress memory limit of 256 MB or more. Older PHP versions still run WooCommerce in some cases, but they are past end of life and receive no security fixes.
Should I use PHP 8.5 for a new WordPress site?
PHP 8.5 is a reasonable choice for a new site when your host offers it and your plugins and theme support it. It has the longest support runway, with security fixes until 31 December 2029. If any plugin does not list PHP 8.5 support, start on PHP 8.4 instead and move later.
Sources
- Requirements WordPress.org
- PHP: Supported Versions PHP
- Dropping support for PHP 7.2 and 7.3 Make WordPress Core
- PHP Compatibility and WordPress Versions Make WordPress Core
- Server requirements WooCommerce
- PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical vulnerabilities WordPress.org
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.
