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.
| Version | Bug fixes until | Security fixes until | What to do |
|---|---|---|---|
| PHP 8.6 | Dec 31, 2028 | Dec 31, 2030 | Very new. Wait until your framework and extensions support it |
| PHP 8.5 | Dec 31, 2027 | Dec 31, 2029 | Good target if your dependencies support it |
| PHP 8.4 | Dec 31, 2026 | Dec 31, 2028 | Safe default target for most older apps |
| PHP 8.3 | Dec 31, 2025 | Dec 31, 2027 | Fine for now, but bug fixes have ended |
| PHP 8.2 | Dec 31, 2024 | Dec 31, 2026 | Upgrade before December 31, 2026 |
| PHP 8.1 | Ended | Ended Dec 31, 2025 | Upgrade now |
| PHP 8.0 | Ended | Ended Nov 26, 2023 | Upgrade now |
| PHP 7.4 and older | Ended | Ended Nov 28, 2022 or earlier | Upgrade 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 situation | Target | Why |
|---|---|---|
| Custom PHP on 8.0, 8.1 or 8.2 | PHP 8.4 | Two more years of security fixes and wide package support |
| Actively developed Laravel or Symfony app | PHP 8.5, if packages allow | Longest practical runway |
| WordPress | PHP 8.3 or newer | WordPress recommends 8.3 or greater. Test plugins first |
| PHP 7.x or 5.x | PHP 8.4, in stages | PHP 8.0 removed many old features, so test each step |
| Cannot move before the deadline | Vendor-backported PHP, for a limited time | Buys 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:
| Change | Version | What to look for |
|---|---|---|
| Implicitly nullable parameters deprecated | 8.4 | function f(Type $x = null) should become ?Type $x = null |
| exit() and die() follow normal function rules | 8.4 | Invalid types now throw a TypeError |
| Some resources became objects | 8.4 | is_resource() checks in ODBC, DBA and SOAP code |
| E_STRICT level removed, constant deprecated | 8.4 | Old error_reporting() settings |
| str_getcsv() throws on a bad separator | 8.4 | CSV imports with a multi-character separator |
| curl_close() and imagedestroy() deprecated | 8.5 | Older HTTP and image code. The calls are no longer needed |
| Backtick shell operator deprecated | 8.5 | Use shell_exec(), or better, avoid the shell |
| (integer), (boolean) and (double) casts deprecated | 8.5 | Use (int), (bool) and (float) |
| disable_classes setting removed | 8.5 | Server configuration files |
| Opcache always built in | 8.5 | Remove 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.
| Company | What it offers | How it prices | Best for |
|---|---|---|---|
| Zend (Perforce) | PHP upgrades and migrations, a complimentary code assessment, and long-term support for PHP 7.2 to 8.2 | Custom quote | Larger companies, or staying on 8.2 for a while with patches |
| Your web host | Newer PHP versions, and sometimes extended support | Often included | Standard WordPress and other common software |
| Lytnex (India, remote) | PHP 5, 7 and 8 upgrades, and CodeIgniter or legacy PHP to Laravel | Own quotation per phase, typically from $15,000; code review quoted separately | Custom applications that need tests and a clear scope |
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
- PHP: Supported Versions
- PHP: Unsupported Branches
- PHP Manual: Migrating from 8.3 to 8.4, incompatible changes
- PHP Manual: Migrating from 8.3 to 8.4, deprecated features
- PHP Manual: Migrating from 8.4 to 8.5, incompatible changes
- PHP Manual: Migrating from 8.4 to 8.5, deprecated features
- Laravel 13: release notes and PHP requirements
- WordPress: server requirements
- Zend: PHP long-term support
- W3Techs: PHP version 8 usage, November 2026
- W3Techs: PHP usage by version, November 2026