Skip to content

What PHP version should I use for WordPress?

By Ash, Founder, HosteazePublished 2 min read

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.

An African elephant walking through tall golden grass under a blue sky. The elephant is PHP's long-standing mascot.
Credit: mcilvride2000 via Pixabay

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 versionSecurity fixes untilWordPress 7.x supportOur view
8.531 December 2029YesFine if your plugins support it
8.431 December 2028YesBest choice for most sites
8.331 December 2027YesGood; WordPress.org's recommended minimum
8.231 December 2026YesPlan your upgrade now
8.1 and olderAlready ended7.4 to 8.1 still run, older don'tUpgrade

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?

Site Health also warns on its Status tab when your PHP version is outdated.

How do I upgrade PHP safely?

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.

Sources

  1. WordPress.org, Requirements
  2. PHP.net, Supported Versions
  3. Make WordPress Core Handbook, PHP Compatibility and WordPress Versions
  4. WordPress Advanced Administration Handbook, Optimization
A blank white billboard standing in a field under a bright sky, as empty as a website showing the white screen of death.QuestionHow to fix the WordPress white screen of deathThe WordPress white screen of death is a blank page, or a "There has been a critical error" message, caused by a PHP error. A faulty plugin or theme is the usual culprit, often straight after an update. Check your admin email for a recovery mode link, or rename the plugins folder by SFTP to switch every plugin off.WordPress speed · 24 November 2026A pane of window glass with a hole punched through it and cracks spreading outwards, the aftermath of a break-in.GuideMy WordPress site has been hacked - what do I do?If your WordPress site is hacked, stay calm and work in order. Write down what you're seeing, change every password and reset the security keys in wp-config.php, then restore a clean backup or replace WordPress files with fresh copies. Update everything, scan your own computer, and request a review in Google Search Console if Google has flagged the site.WordPress speed · 23 November 2026A country track splitting into two paths between autumn trees, a choice between two routes to the same place.ComparisonWordPress.com vs WordPress.org - what's the difference?WordPress.org is the free, open-source WordPress software that you install on hosting you choose, with full control over plugins, themes and data. WordPress.com is a commercial service run by Automattic that hosts WordPress for you, with features tied to its plans. Choose WordPress.org for ownership and flexibility, WordPress.com if you want everything handled by one company.WordPress speed · 21 November 2026A chalkboard sign reading "open" hanging on a weathered shop door beside a window.QuestionWhat are the hosting requirements for WooCommerce?As of October 2026, WooCommerce recommends WordPress 6.9 or greater, PHP 8.3 or greater, MySQL 8.0 or greater (or MariaDB 10.6 or greater), HTTPS support and a WordPress memory limit of at least 256 MB. Beyond those minimums, a shop needs hosting with enough resources for checkout traffic, plus caching that leaves the cart and checkout alone.WordPress speed · 19 November 2026Lorries and cars queued nose to tail on a motorway, the way requests pile up on an overloaded website.QuestionWhy is my WordPress site slow?Most slow WordPress sites have one of five problems - oversized images, no page caching, a heavy theme or plugin, an old PHP version, or a server that responds slowly. Test the page in PageSpeed Insights, check Tools, Site Health in your dashboard, then switch plugins off one at a time to find the culprit before you change anything else.WordPress speed · 17 November 2026

Hosting made for WordPress

See how our WordPress hosting is set up.

See WordPress hosting