WordPress

PHP 8.x on Hosting: Is Your Website Ready for 2027 (and Why Your Host Will Change Your Version Without Asking)

Text
Contents

PHP 8.2 reaches the end of security support on December 31, 2026, and 8.1 ended a year earlier. A WordPress site should run on PHP 8.3 or 8.4 — newer versions are not only more secure, but noticeably faster. Changing the version is one click in your hosting control panel, but without checking plugin and theme compatibility, it can end in a white screen. Below: how to check what you're running, how to switch safely, and why it's worth doing now rather than waiting until your host does it for you.

The thesis: hosting providers are disabling old PHP versions en masse — and doing it without consulting you

How most Polish hosting providers operate: after support for a given PHP version ends, they give you a few months of grace period, send emails (which end up in spam or with a former contractor), and then switch all sites to a newer version automatically. A site with an incompatible plugin wakes up in the morning with a critical error.

The end of 2026 is when this will happen to sites on PHP 8.1 and 8.2 — which, from what we've seen, means most business websites that nobody has touched since launch.

PHP support deadlines

VersionReleaseEnd of security supportStatus as of October 2026
7.42019December 2022Unsafe — minimum for WP 7, but no patches for 4 years
8.02020November 2023Unsafe
8.12021December 31, 2025Unsafe — no patches for 9 months
8.22022December 31, 2026Final quarter — plan your migration
8.32023December 31, 2027Recommended — mature, all plugins compatible
8.42024December 31, 2028Recommended — fastest; check compatibility of older plugins
8.520252029Latest — hold off on production until plugins catch up

Source: php.net supported versions schedule. WordPress 7.x requires a minimum of 7.4 but recommends 8.2+; more context in our article on WordPress 7.

Step 1. Check what you're running

Three ways, starting with the simplest:

  1. WordPress dashboard: Tools → Site Health → Info → Server — the PHP version and a warning if it is outdated.
  2. Hosting panel: the "PHP" or "PHP Configuration" section — this is also where you'll change it.
  3. Site Health plugin will additionally show which plugins report incompatibility.

If you see 7.4, 8.0 or 8.1 — your site has no security patches. If it's 8.2 — you have a quarter left.

Step 2. Check compatibility

Before you change the version:

  • WordPress: 6.6+ and 7.x run on 8.3/8.4 without issues.
  • Plugins: in Plugins → Installed Plugins each one has a link to its repository page with the "Requires PHP" and "Tested up to" fields. A plugin that hasn't been updated in 2 years is a candidate for problems — and for replacement, regardless of PHP. Selection criteria in our plugin review.
  • Theme: premium themes from before 2022 often use functions removed in PHP 8. Check the theme's changelog.
  • Own code (snippets, child theme): the most common source of errors — deprecated functions (create_function, dynamic properties, concatenation null).

Tool: a PHP compatibility checker plugin scans your code and flags issues before the change.

Step 3. Make the change on staging

An order of steps that won't end in a white screen:

  1. Backup (always).
  2. Version change on a staging copy — we explain how to set one up in our article on staging.
  3. Test: front end, dashboard, forms, cart and checkout in a store, editor.
  4. Check the PHP logs — warnings don't block anything, but they point to code that needs fixing.
  5. Deploy to production outside peak traffic hours.
  6. Re-run the tests; if something goes wrong, roll back to the previous version with one click (the only "update" you can undo instantly).

What you gain beyond security

PHP 8.x delivers a real performance gain over 7.4 thanks to the JIT compiler and engine optimizations. In practice: shorter server-side page generation time (TTFB), which translates into a better LCP. Measurements from 7.4 → 8.3 migrations usually show a clear reduction in server response time with no other changes — the cheapest optimization you can make. More context in the article on Core Web Vitals.

White screens and errors — what to do

The symptomCauseSolution
White screen / "critical error"A plugin or theme uses a removed functionRoll back the PHP version, check the log, disable the culprit
Site works, admin panel doesn'tIncompatible admin pluginRename the plugin folder via FTP
"Deprecated" warnings on the siteError display is turned onTurn off WP_DEBUG_DISPLAY; fix the code when you have time
Form doesn't sendIncompatible email pluginUpdate or replacement
Store: payment errorPayment gateway or checkout pluginUpdate the gateway; test in sandbox

A host that doesn't offer PHP 8.3

This is a sign to change your hosting, not just your PHP version. A provider without current PHP versions doesn't keep other parts of the server up to date either. Criteria in the hosting comparison.

From our experience

All the sites under our care moved to 8.3 in the first half of 2026, and stores did so after testing on staging with a test transaction. The most common problem isn't plugins from the repository, but custom code added by a previous developer in theme files, without a child theme.

With ongoing administration we plan, test, and carry out PHP version changes before your hosting does it on its own — with a backup and the option to roll back.

FAQ — PHP Version and WordPress

Which PHP version is best for WordPress in 2026?

8.3 — mature, supported through the end of 2027, and compatible with almost all plugins. 8.4 is faster and supported for longer, but if you use older plugins, it's worth checking compatibility on staging first.

Can changing the PHP version break my website?

It can, if a plugin, theme, or custom code uses functions that were removed in the newer version. That's why the change should be made on a test copy. The upside is that rolling back to the previous version is just one click in your hosting control panel.

What happens if I stay on PHP 8.2 after December 2026?

Your site will keep working, but without security patches — every newly discovered PHP vulnerability will remain open. Most hosting providers will disable 8.2 within a few months of the end of support, switching sites over automatically.

Author: Adrian Kamiński — Websky Studio, Poznań. WordPress site and store maintenance — we change PHP versions as planned, on staging, before the hosting provider does it for you.

Your feedback

Was this article helpful?

One click — it helps me choose future topics.

Share article

Websky Newsletter

New posts straight to your email.

Once a month — practical insights on WordPress, WooCommerce, SEO and AI. No spam, unsubscribe with one click.

  • Case studies from Polish projects
  • Checklists and templates to download
  • Google and WordPress changes in a nutshell

Your data goes to Websky Studio only. You can unsubscribe with one click in every message.

WordPress

Stuck on something in WordPress?

Implementations, migrations, repairs after other contractors, and custom solutions. You talk to the designer, not a salesperson.

Message the studio