PHP 8.2 is ending: what companies must do about their website, e-shop and app

25. 11. 2026
Okno aplikace se štítkem PHP 8.2 a červený kalendář s datem 31. prosince, vedle ikona hodin a šipka upgradu.

PHP 8.2 reaches end of life for security support on 31 December 2026. From that day on, no more security fixes will be released for this version. Your website, e-shop or internal application will not switch off and your customers will not notice anything. But any vulnerability found in PHP 8.2 after that date will not receive an official fix.

For a company, this raises three questions: which PHP version are we actually running, which version should we move to, and who will do the upgrade. The answers are below.

In October we wrote about the critical PHP2Shell vulnerability, which required an immediate patch. This article is about something different: a planned upgrade that you still have time for, though not much. We are 1. Web IT, a development company based in Prague and Brno that builds and runs web applications, e-shops and custom systems in PHP for the long term.

Quick overview: security support end dates for PHP versions

  • PHP 8.2: until 31 December 2026
  • PHP 8.3: until 31 December 2027
  • PHP 8.4: until 31 December 2028
  • PHP 8.5: until 31 December 2029
  • PHP 8.6: until 31 December 2030

PHP 8.2 end of life on 31 December 2026 does not mean your site stops working, it means the fixes stop

Every PHP version goes through two phases. Active support is the period when PHP maintainers fix ordinary bugs and security issues and release regular patch versions. Security support follows, and during it only security fixes are released.

For PHP 8.2, active support ended on 31 December 2024 and security support ends on 31 December 2026. After that, the version is unsupported.

In practice, your site will run just as it does today. The difference comes when someone finds a new vulnerability in PHP 8.2. The PHP developers will not release an official fix. For some recent critical vulnerabilities, PHP package maintainers in Linux distributions have backported fixes to older versions, but not for every fix, and nothing is guaranteed. You cannot rely on this, and your application may remain exposed until you move to a newer version. If you have paid extended PHP support from a specialist company, the end of support is less of a concern for you.

How to check your PHP version: the server decides, not composer.json

Checking your PHP version takes a few minutes. The most common ways:

  • Hosting control panel. Most hosting providers show the PHP version for each domain.
  • WordPress. Tools, Site Health, Info, Server.
  • Server command line. Run php -v. Note that the command line version can differ from the version your website runs on.
  • Ask your supplier. Whoever manages the site should know straight away.

Check the patch version too, for example 8.2.x, not just 8.2. If you do not know which PHP version you run at all, you most likely are not running the latest patch release of your version either. The exception is managed web hosting, where the host handles the updates.

A detailed walkthrough, including Docker and PHP-FPM, is in our article on PHP2Shell. One point matters most: the version that counts is what actually runs on the server, not what is written in composer.json.

What if you do not know who manages the server? This is more common than you might think, especially with applications built by a supplier who no longer works with the company. The first step is an inventory: where the application runs, who has access and how it is deployed. We describe how to do it in our article on taking over an application from another supplier. You can also hand server management over to us as part of server and infrastructure management.

Which PHP version to upgrade to: 8.3 is the smallest step, 8.5 and 8.6 last the longest

Version Released Active support until Security support until What it means for your company
PHP 8.2 8 Dec 2022 31 Dec 2024 31 Dec 2026 time to upgrade
PHP 8.3 23 Nov 2023 31 Dec 2025 31 Dec 2027 smallest step, next upgrade in a year
PHP 8.4 21 Nov 2024 31 Dec 2026 31 Dec 2028 proven version, two years of support
PHP 8.5 20 Nov 2025 31 Dec 2027 31 Dec 2029 a year on the market, three years of support
PHP 8.6 19 Nov 2026 31 Dec 2028 31 Dec 2030 longest support, but a fresh release

Data source: php.net, as of 25 November 2026.

PHP 8.3 is the smallest change from 8.2, so the upgrade tends to be the quickest. However, its security support already ends on 31 December 2027, so you will be dealing with the same question again in a year.

PHP 8.4 has security support until 31 December 2028. It has been available for two years and the ecosystem of libraries and plugins is more mature for it. Its active support ends on 31 December 2026, after which it receives security fixes only.

PHP 8.5 was released on 20 November 2025 and has security support until 31 December 2029. For many applications it is currently a sensible balance between length of support and maturity of the ecosystem.

PHP 8.6 was released on 19 November 2026 and will be supported the longest, until 31 December 2030. It is, however, brand new. Before deploying it, check that every library, module and plugin your application uses supports it, and allow for the changed session defaults (see below).

There is no single right version for everyone. The target version depends on the compatibility of your specific application: framework, CMS, modules and custom code. We do not recommend skipping several versions blindly. It is better to find out first what the application can handle and decide based on that.

Delaying the upgrade increases both risk and workload

Security. A critical vulnerability can appear at any time. PHP2Shell showed that a serious flaw in the PHP core calls for a response within days. On a supported version, you install the fix. On an unsupported version, the only real solution is an upgrade, and that is harder to do under pressure.

Operations. Hosting providers may restrict or stop offering unsupported PHP versions over time. Your host might move you to a newer version on its own, and an application that is not ready for it may stop working correctly.

Audits and customer requirements. Companies covered by NIS2, and their suppliers, also deal with updates and vulnerability management. An unsupported PHP version can become a finding in an audit or in a customer's security questionnaire. We cover the context in our article NIS2 for Czech companies. This is not legal advice; that belongs to specialists.

Growing workload. With every skipped version, more changes need to be handled in the code at once. Upgrading from 8.2 to 8.4 now is a smaller project than upgrading from 8.2 to 8.6 in two years, when there is no other option left.

PHP 8.6 changes session defaults, which can affect logins

PHP 8.6 tightened three default values for sessions, the mechanism that remembers a logged-in user or the contents of a shopping basket:

  1. session.use_strict_mode is now enabled. PHP rejects session IDs it did not create itself.
  2. session.cookie_httponly is now enabled. JavaScript can no longer read the session cookie.
  3. session.cookie_samesite is now Lax. The browser does not send the session cookie with cross-site requests, except for ordinary top-level navigation.

That is good news for security. Some applications, though, depend on the old behaviour:

  • The frontend reads the session cookie from JavaScript. You then need to disable httponly explicitly, or better, change the code.
  • The application relies on the session during a cross-site POST request. Typically a customer returning from a payment gateway, or single sign-on (SSO). You then need to set samesite to None and also enable session.cookie_secure.
  • The application has its own session storage. It must then be able to validate session IDs (validateId() and create_sid()), or strict mode has to be disabled.

If you are moving to 8.4 or 8.5 now, this will affect you later. It is still worth knowing today, so the next upgrade holds no surprises.

PHP upgrade step by step

  1. Inventory. List all websites, e-shops and applications, which PHP version they run on, where, and who manages them.
  2. Backup. Back up the database and files before you start, and check that the backup can actually be restored. More in our article on backups and ransomware recovery.
  3. Test environment. Run the upgrade on a copy of the application (staging) first, not on production.
  4. Dependencies. Check Composer packages, PrestaShop modules, WordPress plugins and custom code. Update or replace anything the new version does not support.
  5. Test key processes. Orders, payments, logins, forms, exports to ERP or accounting.
  6. Deploy and monitor. Deploy at a quiet time with a rollback to the previous version ready, and watch the error logs for several days.

When to hand the upgrade to a developer

An experienced administrator can often handle a simple website running on up-to-date WordPress alone. Bring in a developer if any of the following applies:

  • you do not know which PHP version the application runs on or who manages it,
  • the application has its own modules or custom-built code,
  • it uses libraries that nobody maintains any more,
  • it is an e-shop and the upgrade is close to peak season,
  • the upgrade fails on the test environment.

At 1. Web IT, we carry out PHP upgrades as part of our application support with an SLA, and we also offer development services, urgent programmer help and custom-built systems.

Frequently asked questions

When does PHP 8.2 support end?

Security support for PHP 8.2 ends on 31 December 2026. Active support, meaning fixes for ordinary bugs, already ended on 31 December 2024. After 31 December 2026, not even security fixes are released for PHP 8.2 (source: php.net).

Which PHP version should I upgrade to?

For the long term, PHP 8.4 (supported until 31 December 2028), 8.5 (until 31 December 2029) or 8.6 (until 31 December 2030) make sense. PHP 8.3 is the smallest step, but its security support already ends on 31 December 2027. The choice depends on what your application's framework, CMS and modules support.

Should I jump straight to PHP 8.6?

PHP 8.6 has the longest support, until 31 December 2030, but it was only released on 19 November 2026. Not every library and plugin will necessarily support it yet, and it changes the default session settings. Test it on a copy of your application first.

Will my website on PHP 8.2 stop working when support ends?

No. Your website will keep running as before. However, newly discovered security vulnerabilities will no longer be officially fixed (Linux distribution maintainers may backport an unofficial fix for some of them, but you cannot count on it), and your hosting provider may restrict or stop offering the old version over time.

How do I check which PHP version my website uses?

Look in your hosting control panel, in WordPress (Tools, Site Health, Info, Server), or run php -v on the server. Alternatively, ask your supplier. What counts is the version that actually runs on the server, not the value in composer.json.

Not sure what your application runs on, or want to plan your PHP upgrade before the end of the year? Let us look at where your application runs, which version to move to and what needs testing. Get in touch: we reply to every enquiry within one working day, and the initial 30-minute call is free.

More articles