Upgrade deadlines3 min read
PHP 8.2 end of life on 31 December 2026: what to do now

PHP 8.2 stops getting security fixes from the PHP project on 31 December 2026. If your website or business application runs on it, or on anything older, here's what that means and how to upgrade without drama.
What "end of life" actually means
Each PHP version gets two years of active support (bug and security fixes), then two years of security fixes only. After that, it's end of life: the PHP project releases no more patches, even for serious vulnerabilities.
Your application won't stop working on 1 January. The risk is that the next security vulnerability found in PHP 8.2 will stay unfixed on your server. That vulnerability will also be publicly documented, which makes it easier for attackers to target.
Current PHP support dates
- PHP 8.1: security support ended 31 December 2025
- PHP 8.2: security support ends 31 December 2026
- PHP 8.3: security support until 31 December 2027
- PHP 8.4: security support until 31 December 2028
Check the official PHP supported versions page for the latest dates.
Who is affected
- Custom PHP applications: portals, booking systems, CRMs, internal tools
- WordPress, Magento and other PHP-based platforms on servers running PHP 8.2 or older
- Apps built on older framework versions, such as CakePHP, CodeIgniter or Laravel, that haven't been updated in years
Your hosting provider may act before you do. Managed hosts often remove old PHP versions on their own schedule, sometimes with only a few weeks' notice.
How to check which PHP version you're on
- Look in your hosting control panel (cPanel, Plesk and similar panels show the PHP version per site).
- Ask your hosting provider or developer.
- If you have server access, run
php -v. A web page that callsphpinfo()also works, but delete it straight afterwards.
Your options
Option 1: Upgrade to PHP 8.4 (recommended)
This gives you security support until the end of 2028. For applications already on PHP 8.x, the changes are usually manageable: mainly deprecations, stricter type handling and library updates.
Option 2: Upgrade to PHP 8.3
A smaller step, but it only buys you one more year before you do this again.
Option 3: Pay for extended support
Some Linux distributions and commercial vendors back-port security fixes to old PHP versions. That can be a sensible bridge for a few months, not a long-term plan.
A safe upgrade plan
- Inventory. List every application and site on the server, and its PHP version.
- Scan. Run a compatibility scanner such as PHPCompatibility for PHP_CodeSniffer, or Rector, to find code that will break.
- Stage. Build a copy of the app on the new PHP version, with a recent copy of the data.
- Fix and test. Fix issues in small batches, then test the journeys your business depends on: logins, payments, reports, scheduled jobs and emails.
- Release with a rollback. Switch production at a quiet time, watch the error logs, and keep the old version ready to restore.
Things that commonly break when upgrading to PHP 8
- Removed functions such as
each()andcreate_function() - Changed comparisons between strings and numbers
- Deprecation warnings for passing null to built-in functions (PHP 8.1)
- Dynamic properties on classes, deprecated in PHP 8.2
- Old Composer packages and framework versions that don't support PHP 8
Short on time? We upgrade legacy PHP applications with a fixed quote after a quick scan. See our PHP upgrade service, or tell us what you're running.


