Pick a PHP version for WordPress

php, version, compatibility · 0 found this helpful

WordPress runs on PHP. Newer PHP versions are faster and get security fixes. Old versions stop receiving fixes. Pick the newest version your plugins support.

Which version

PHP Status
8.5 Newest. Use it once your plugins support it
8.4, 8.3 Best choice for most sites
8.2 Fine if a plugin lags. Security fixes end on December 31, 2026
8.1 and older (back to 5.6) Out of security support. Plan an upgrade

WordPress's own requirements change. Check Tools → Site Health in wp-admin, which also recommends a version.

Change it

  1. Open Account → Hosting → your site → Performance → Choose PHP for each site.
  2. On your site's card, choose a PHP version and click Save. We check the site loads on the new version, and put the old one back if it doesn't.
PHP for each site

See Change PHP version and extensions.

Test safely

  1. Back up. See Back up and restore WordPress.
  2. Make a staging copy and check your plugins there first. See Stage or clone.
  3. Click through pages, forms, checkout, and wp-admin.
  4. Check the error log. See Read your site's error log.
  5. Apply to live.

After a change

Symptom Fix
White screen Switch back. See Fix the WordPress white screen
Deprecated notices A plugin needs updating, or replacing
Missing function Turn on the PHP extension in Performance → Extensions. See Change PHP version and extensions
Slower or timeouts Check memory limit

Check the version in use

wp --info | grep "PHP binary"
php -v

Was this helpful?

Still stuck? Ask us and we'll walk you through it.