Deadlines

PHP 8.2 end of life: security fixes stop on 31 December 2026

PHP 8.2 reaches end of life on 31 December 2026: after that date, the PHP project will release no further security fixes for it. If your website still runs PHP 8.2, plan a move to PHP 8.4 or 8.5 (or at least 8.3) before the end of the year, once you have checked that your CMS, theme and plugins support it.

Your site will not go offline on 1 January. What stops is maintenance: any flaw found in PHP 8.2 from then on stays unfixed upstream. The good news is that, on most shared hosting, switching versions takes a few clicks. This guide shows how to check your version, which one to pick, and where the setting lives at common hosts.

The PHP support timeline

Each PHP branch gets two years of active support, then a further two years of security-only fixes. As of 12 November 2026:

BranchReleasedSecurity fixes untilStatus
PHP 8.125 Nov 202131 Dec 2025End of life
PHP 8.28 Dec 202231 Dec 2026Security fixes only, ending soon
PHP 8.323 Nov 202331 Dec 2027Security fixes only
PHP 8.421 Nov 202431 Dec 2028Active support until 31 Dec 2026
PHP 8.520 Nov 202531 Dec 2029Active support

The latest PHP 8.2 release at the time of writing is 8.2.35, published on 21 October 2026.

How to check which PHP version your site uses

In your hosting control panel

Almost every host shows the PHP version in its dashboard. The paths for some popular hosts are listed further down.

In WordPress

Go to Tools > Site Health, open the Info tab and expand Server. The PHP version is listed there.

From the command line

If you have SSH access, php -v prints the version used on the command line. Note that the web server can use a different version from the CLI, so confirm it in the control panel too.

From the outside

When PHP's expose_php setting is on (the default), responses include an X-Powered-By header such as PHP/8.2.35. Many hosts hide it, which is good practice, so a missing header tells you nothing about the real version.

Check your domain for free. AttackScout spots the PHP version when your site shows it publicly, and tells you when its support ends. Run the free check

Which version should you move to?

It depends on what runs on top of PHP:

  • WordPress recommends PHP 8.3 or newer. Most maintained plugins follow, but an abandoned plugin can hold you back.
  • Drupal 11 requires at least PHP 8.3. Drupal 10 itself reaches end of life on 9 December 2026, so a Drupal site may need both upgrades.
  • Custom applications and frameworks: ask your developer to test the target version. The PHP manual publishes a migration guide for each release listing the backward-incompatible changes.

If your site works on it, PHP 8.4 is a sensible default: two years of security fixes ahead and broad compatibility. PHP 8.5 gives you the longest runway. PHP 8.3 is acceptable but only buys you twelve months.

Before you switch

  1. Back up your files and database.
  2. Update your CMS, theme and plugins. Current versions are far more likely to support newer PHP.
  3. Test on a staging copy if your host offers one, or switch at a quiet time so you can roll back quickly if something breaks.

How to change PHP version at your host

Menu names below were checked against each provider's official help on 12 November 2026. Interfaces change; if a label differs, look for a "PHP" section in your hosting dashboard.

Hostinger (hPanel)

  1. Go to Websites, hover over your site and click Manage site.
  2. Open PHP Configuration in the sidebar.
  3. Pick the version and click Update.
  4. Wait a couple of minutes, then confirm the new version.

Hostinger offers PHP 8.2 to 8.5 for new sites, with 8.3 as the default, and applies patch releases automatically. The selected version applies to every website on the plan. Downgrading is only possible within the same login session, so test promptly. On Hostinger's cPanel plans, the setting is under Software > Select PHP Version instead.

IONOS (Linux hosting)

  1. Log in and open Menu > Hosting, then select the contract.
  2. Click Manage in the PHP tile.
  3. Click the domain you want to change, or tick several and use Select PHP version at the top of the table.
  4. Choose the version and click Save.

Check your site straight away and switch back if needed. On Managed Hosting for WordPress and MyWebsite, IONOS manages the version for you. IONOS also sells "PHP Extended Support" for older branches; as of 12 November 2026, its public page does not yet list PHP 8.2.

Other cPanel hosts

Many cPanel hosts provide a Select PHP Version tool (CloudLinux) or the MultiPHP Manager, both usually in the Software section. Choose the version and apply it. If the change does not seem to take effect, look for an .htaccess rule (AddHandler or AddType) that forces another version.

After the switch

  • Click through your key pages, contact form and, for a shop, the checkout.
  • Keep an eye on your host's error logs for a few days.
  • Confirm the version again in your dashboard or in WordPress Site Health.

Frequently asked questions

Will my site stop working on 1 January 2027?

No. PHP 8.2 keeps running. It simply stops receiving security fixes from the PHP project.

Will my host upgrade PHP for me?

Not necessarily. Some hosts move a default version forward over time; others keep whatever you chose. Check your setting rather than assume.

Is it safe to jump straight to PHP 8.5?

If your CMS and plugins support it, yes, and you get support until the end of 2029. If you are unsure, PHP 8.4 is a strong middle ground.

When is the next PHP deadline?

PHP 8.3 reaches end of life on 31 December 2027. Our deadlines calendar keeps every date in one place.

Check your domain for free. In under a minute and without an account, AttackScout looks at your site the way the internet sees it: software versions, certificate, security headers and email setup. Then it tells you what to fix first. Check my domain

You can also test your security headers or see the full list of our checks.

Sources

Accessed 12 November 2026.