Get a free website with any plan

See how
WORDPRESS

What PHP version should I use for WordPress?

Last updated

IN SHORT

Flashcloud defaults new WordPress installs to PHP 8.3: it's roughly 30-50% faster than 7.4, uses less memory, and covers WordPress 6.4+ with best plugin compatibility. Older versions (7.4-8.2) stay available for sites with legacy plugins or themes that need them.

We default to PHP 8.3 for new WordPress installs. That's the right answer for almost every site. Older versions (7.4–8.2) are available for compatibility with legacy plugins and themes.

Why 8.3

  • Faster — PHP 8.3 is roughly 30–50% faster than 7.4 on typical WordPress workloads.
  • Better memory usage — uses less memory per request.
  • Modern features — JIT compilation, typed properties, named arguments, readonly classes.
  • Active support — security patches and bug fixes.
  • Best WordPress compatibility — WordPress 6.4+ runs on 8.3; most actively-maintained plugins work fine.

When you'd use an older version

  • Legacy plugin or theme that hasn't been updated. Some old plugins fail on PHP 8.x — they use removed functions or syntax that's been dropped. If a plugin is essential and hasn't been updated, you may need to keep PHP 7.4 (or a specific 8.x) for compatibility.
  • Custom code in your theme or mu-plugins that hasn't been audited for newer PHP.
  • Hosting migration in progress where you're moving from a host that ran an older PHP version and you haven't tested 8.3 yet.

How to switch

  1. Go to Services → click hosting → PHP Version tile.
  2. For each domain, pick the PHP version you want.
  3. Save.

The switch is instant. You can switch back as easily if needed.

Test before switching production

If your site is mission-critical, test before flipping the version:

  • Set up a staging copy at a subdomain and switch its PHP version first.
  • Run through the site — admin login, all critical user flows (checkout, contact form, etc.).
  • Watch for errors in wp-content/debug.log (turn on WP_DEBUG temporarily).

If staging works, switch production with confidence.

What PHP versions are supported by WordPress core?

WordPress maintains a list at wordpress.org/about/requirements/. Currently:

  • PHP 7.4 minimum for WordPress 6.x.
  • PHP 8.3 recommended.
  • Older PHP versions still receive WordPress security patches but new features may not work.

For new installs, default to 8.3. For existing installs, plan an upgrade path.

Plugin and theme compatibility

When considering a PHP version upgrade:

  • Check each plugin's "Tested up to PHP" version on its WordPress.org page.
  • For paid plugins, check the vendor's docs.
  • For custom code or your theme, a developer should audit. Common breakage:
    • each() removed in 8.0.
    • count() on null is fatal in 8.0+.
    • mysql_* functions removed (deprecated since PHP 5.5).

If you have an old custom theme, the audit + cleanup may take a few hours. After that, you're on a faster, safer base.

"My site shows a fatal error after PHP version change"

Roll back the PHP version on the same page. The site comes back to working state immediately.

Then debug what's incompatible:

  1. Turn on WP_DEBUG in wp-config.php.
  2. Switch PHP version up again.
  3. Check wp-content/debug.log — the fatal error tells you which file is broken.
  4. Update the plugin/theme, or fix the custom code.

Or, if the offender is a specific plugin, disable just that plugin and try the upgrade again — many sites can run on 8.3 with one or two plugins disabled.

What about PHP 8.4 or 9.0?

PHP 8.4 (released late 2024) has limited WordPress plugin support so far. WordPress 6.x officially tested up to 8.3.

We'll add 8.4 as an option once WordPress and major plugins broadly support it. Check the PHP version dropdown periodically — newer versions appear there as they're added.

Power-user note

For ultimate performance, run your site on the newest PHP your stack supports. Each major PHP release improves performance by 20–40%. Combined with our LSCache + Redis setup, modern PHP makes WordPress dramatically faster than legacy stacks.

If you're optimizing for absolute speed, PHP 8.3 + LSCache + Redis on Flashcloud's NVMe storage is roughly 3x faster than PHP 7.4 + WP Super Cache + no object cache on a typical SATA SSD shared host.

Common questions

What PHP version should I use for WordPress?

Use PHP 8.3. It's the default for new installs, roughly 30-50% faster than 7.4, and covers WordPress 6.4+ with the best plugin compatibility. Only drop to an older version if a legacy plugin or theme requires it.

How do I change my PHP version?

Go to Services, click your hosting, then the PHP Version tile. Pick the version you want per domain and save. The switch is instant and you can switch back the same way.

Why did my site break after I changed the PHP version?

A plugin, theme, or custom code is using something removed in newer PHP, like the each() function or count() on null, both fatal in PHP 8.0+. Roll back the PHP version on the same page to restore the site immediately, then turn on WP_DEBUG and check wp-content/debug.log to find the broken file.

Should I test PHP 8.3 before switching my live site?

Yes, if your site is mission-critical. Set up a staging copy at a subdomain, switch its PHP version first, run through admin login and critical flows like checkout or contact forms, and watch wp-content/debug.log for errors before switching production.

Can I use PHP 8.4 on Flashcloud yet?

Not yet. PHP 8.4 has limited WordPress plugin support so far and WordPress 6.x is officially tested only up to 8.3. It'll be added to the PHP version dropdown once WordPress and major plugins broadly support it.

CAN'T FIND IT?

Real humans answer fast.

Hosting with us? Open a ticket and a real person replies - no scripts, no upsells. Still choosing a host? The same team is included with every plan, from day one.