What PHP version should I use for WordPress?
By Ash, Founder, HosteazePublished 2 min read
The short answer
As of October 2026, use PHP 8.3 or 8.4 for WordPress. WordPress.org recommends 8.3 or greater, and both versions still get security fixes until at least the end of 2027. PHP 8.2 loses security support on 31 December 2026, and 8.1 and older already have. Test on staging before switching, because old plugins may not cope.

PHP is the programming language WordPress is written in, and your host runs a particular version of it for your site. You can usually change it yourself in a couple of clicks. That makes it one of the cheapest speed and security upgrades available, and one of the easiest to get wrong if you skip the testing.
Which PHP versions are supported as of October 2026?
| PHP version | Security fixes until | WordPress 7.x support | Our view |
|---|---|---|---|
| 8.5 | 31 December 2029 | Yes | Fine if your plugins support it |
| 8.4 | 31 December 2028 | Yes | Best choice for most sites |
| 8.3 | 31 December 2027 | Yes | Good; WordPress.org's recommended minimum |
| 8.2 | 31 December 2026 | Yes | Plan your upgrade now |
| 8.1 and older | Already ended | 7.4 to 8.1 still run, older don't | Upgrade |
Dates are from PHP.net. WordPress support is from the WordPress core handbook, which lists PHP 7.4 to 8.5 as supported by WordPress 7.0 and 7.1. "Supported by WordPress" only means core works. PHP 7.4 to 8.1 no longer get security fixes from the PHP project, so running them is a risk however well WordPress copes.
How do I check which PHP version my site uses?
- Log in to WordPress and go to Tools > Site Health.
- Open the Info tab and expand Server.
- Look for PHP version.
Site Health also warns on its Status tab when your PHP version is outdated.
How do I upgrade PHP safely?
- Update WordPress, your theme and all plugins first. Older plugin versions are the most likely to break on newer PHP. Our guide on updating WordPress safely has the routine.
- Take a full backup. See how to back up a WordPress site.
- If you can, switch PHP on a staging site first.
- In your hosting control panel, find the PHP version setting for your site and choose the new version. The exact location varies by host.
- Click through your site: home page, contact form, checkout, and the WordPress dashboard.
- Check for a "critical error" message or a recovery mode email. If one appears, switch PHP back and look for an update to the plugin it names.
What if a plugin doesn't work on newer PHP?
Check the plugin's page on WordPress.org. If it hasn't been updated in a year or more, that's your answer: find a maintained alternative. Holding your whole site on an unsupported PHP version for one abandoned plugin is a bad trade. If you hit a white screen after switching, our guide to the white screen of death walks you through finding the culprit, and why is my WordPress site slow covers other speed checks.
Frequently asked questions
Is PHP 8.5 safe to use with WordPress?
WordPress core supports PHP 8.5 from version 6.9 onwards. The risk is your plugins and theme, some of which may not have caught up. If everything on your site is up to date and tests cleanly on staging, it's fine; otherwise PHP 8.4 is the safer choice for now.
Will upgrading PHP make my site faster?
Often a little, sometimes noticeably. WordPress's optimisation guide notes that newer PHP versions usually include better performance. The bigger reason to upgrade is security, since unsupported versions no longer get fixes.
Can I go back if a PHP upgrade breaks my site?
Usually, yes. Most hosting control panels let you switch the PHP version back in a couple of clicks. Change it back, then find the plugin or theme causing the error before trying again.




