Black Friday

Up to 80% off web hosting and WordPress plans until 30 NovemberUp to 80% off

See plans
WORDPRESS

What PHP version should I use for WordPress?

Last updated

IN SHORT

Flashcloud defaults to PHP 8.3 for new WordPress installs, which is the recommended choice for almost every site. PHP 8.3 delivers 30-50% faster performance than PHP 7.4 along with better memory usage. If legacy themes or plugins break, older versions from 7.4 to 8.2 remain available in your hosting dashboard.

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 happens if changing PHP breaks my site?

Roll back the PHP version immediately in your dashboard to restore the site. You can then enable WP_DEBUG in wp-config.php and inspect wp-content/debug.log to find the broken plugin or theme file.

Can I use PHP 8.4 right now?

Not yet on Flashcloud. PHP 8.4 currently has limited WordPress plugin support, but we will add it once WordPress and major plugins support it broadly.

How do I change the PHP version for my domain?

Select the PHP Version tile under your hosting services, pick your PHP version, and save. The switch applies instantly, and you can switch back at any time.

Why should I upgrade from PHP 7.4 to 8.3?

PHP 8.3 runs roughly 30-50% faster than 7.4 and uses less memory per request. It also provides active security patches, bug fixes, and full compatibility with WordPress 6.4 and newer.

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.