GUIDE

PHP 8.2 End of Life: Dates, Risks and How to Upgrade

PHP 8.2 reaches end of life on December 31, 2026. After that date the PHP project stops publishing security fixes for it. Your site will keep running, but newly found holes will stay open. Most applications should move to PHP 8.4, which has security support until December 31, 2028, or to PHP 8.5, supported until December 31, 2029.

PHP version checker

Enter your version. To find it, run php -v on the server or look in your hosting panel.

PHP support dates

From php.net, checked November 24, 2026. PHP 8.6 was released on November 19, 2026.

VersionBug fixes untilSecurity fixes untilWhat to do
PHP 8.6Dec 31, 2028Dec 31, 2030Very new. Wait until your framework and extensions support it
PHP 8.5Dec 31, 2027Dec 31, 2029Good target if your dependencies support it
PHP 8.4Dec 31, 2026Dec 31, 2028Safe default target for most older apps
PHP 8.3Dec 31, 2025Dec 31, 2027Fine for now, but bug fixes have ended
PHP 8.2Dec 31, 2024Dec 31, 2026Upgrade before December 31, 2026
PHP 8.1EndedEnded Dec 31, 2025Upgrade now
PHP 8.0EndedEnded Nov 26, 2023Upgrade now
PHP 7.4 and olderEndedEnded Nov 28, 2022 or earlierUpgrade now, in stages

What happens after December 31, 2026

  • Nothing breaks on the day. Your application keeps running.
  • New security holes found in PHP 8.2 will not be fixed by the PHP project.
  • Package authors drop old versions over time, so updates to your libraries stop installing. Laravel 13, for example, already needs PHP 8.3 or newer.
  • Security scans, customer questionnaires and insurers may flag the unsupported version.
  • Your host may move you to a newer version or charge for extended support. Ask for its date in writing.

You are not the only one

W3Techs reported in November 2026 that 25.0% of websites using PHP 8 run version 8.2, and another 17.3% run 8.1 or 8.0, which are already out of support. Across all PHP websites it found 24.0% on version 7 and 7.2% on version 5. Those figures come from what servers report publicly, so treat them as a good estimate.

Which version should you move to?

Your situationTargetWhy
Custom PHP on 8.0, 8.1 or 8.2PHP 8.4Two more years of security fixes and wide package support
Actively developed Laravel or Symfony appPHP 8.5, if packages allowLongest practical runway
WordPressPHP 8.3 or newerWordPress recommends 8.3 or greater. Test plugins first
PHP 7.x or 5.xPHP 8.4, in stagesPHP 8.0 removed many old features, so test each step
Cannot move before the deadlineVendor-backported PHP, for a limited timeBuys time, but does not replace the upgrade

What breaks between PHP 8.2 and 8.5

Most 8.2 applications upgrade without major surgery. These are changes worth searching for first:

ChangeVersionWhat to look for
Implicitly nullable parameters deprecated8.4function f(Type $x = null) should become ?Type $x = null
exit() and die() follow normal function rules8.4Invalid types now throw a TypeError
Some resources became objects8.4is_resource() checks in ODBC, DBA and SOAP code
E_STRICT level removed, constant deprecated8.4Old error_reporting() settings
str_getcsv() throws on a bad separator8.4CSV imports with a multi-character separator
curl_close() and imagedestroy() deprecated8.5Older HTTP and image code. The calls are no longer needed
Backtick shell operator deprecated8.5Use shell_exec(), or better, avoid the shell
(integer), (boolean) and (double) casts deprecated8.5Use (int), (bool) and (float)
disable_classes setting removed8.5Server configuration files
Opcache always built in8.5Remove zend_extension=opcache.so from settings

A five-step upgrade checklist

  • Inventory: record the PHP version, extensions and packages on every server, scheduled job and worker. Command-line PHP is often a different version from the website.
  • Check packages: run "composer why-not php 8.4" to list the packages that block the upgrade, then update or replace them.
  • Test first: write automated tests for login, payments and the few screens the business depends on.
  • Change the code: use Rector for mechanical changes and PHPStan to find the rest, then fix deprecations by hand.
  • Release in steps: run the new version on staging with a copy of real data, move one server first, watch the logs, and keep the old version ready to restore.

Which companies can upgrade PHP before the deadline?

Lytnex publishes this guide and sells PHP upgrades. We read the Zend page on November 24, 2026 and have not tested their work.

CompanyWhat it offersHow it pricesBest for
Zend (Perforce)PHP upgrades and migrations, a complimentary code assessment, and long-term support for PHP 7.2 to 8.2Custom quoteLarger companies, or staying on 8.2 for a while with patches
Your web hostNewer PHP versions, and sometimes extended supportOften includedStandard WordPress and other common software
Lytnex (India, remote)PHP 5, 7 and 8 upgrades, and CodeIgniter or legacy PHP to LaravelOwn quotation per phase, typically from $15,000; code review quoted separatelyCustom applications that need tests and a clear scope
Zend: PHP services ↗

Can it be done before the deadline?

A small, well-maintained application on PHP 8.2 can often move within the remaining weeks. A large codebase with few tests, or one still on PHP 7, probably cannot be finished safely by December 31. In that case, use the time to protect it: confirm backups, limit public access to admin screens, put a web application firewall in front, ask your host about extended support, and set a dated plan.

Related guides

Frequently asked questions

When is PHP 8.2 end of life?

PHP 8.2 security support ends on December 31, 2026. Regular bug fixes for it ended on December 31, 2024.

Will my website stop working when PHP 8.2 reaches end of life?

No. It keeps running, but new security problems in PHP 8.2 will not be fixed by the PHP project, and newer packages will stop supporting it.

Should I upgrade to PHP 8.3, 8.4 or 8.5?

PHP 8.4 is the safe default, with security fixes until December 31, 2028. Choose 8.5 if your packages support it. PHP 8.3 only gets you to December 31, 2027, so you would be upgrading again sooner.

Does WordPress work without PHP 8.2?

Yes. WordPress recommends PHP 8.3 or greater. Test your theme and plugins on a staging copy before switching, because old plugins are the usual cause of problems.

How do I check which PHP version I am running?

Run "php -v" on the server, look in your hosting control panel, or in WordPress open Tools, Site Health, Info, Server. Check scheduled jobs too, because command-line PHP can be a different version.

How are PHP upgrades priced?

Most PHP firms quote after scoping, because code size, tests and packages differ. Lytnex reviews the code first, then gives a quotation for each phase, typically from $15,000. Ask any supplier what is included, such as tests, staging, data checks and a rollback plan.

Can I pay for extended PHP 8.2 support?

Yes. Zend sells long-term support that includes PHP 8.2, and some Linux distributions backport security fixes to older PHP versions. It can buy time for a large migration. Check exactly which version and extensions are covered, and until when.

Sources

Need a hand with this?

Talk to us about PHP upgrades.

We use your details to reply to you, as described in our privacy policy. Please do not send passwords or customer data. A non-disclosure agreement is available on request.

See our PHP upgrade and migration services →