Skip to content

PHP 8.6 is out: should your application switch now?

PHP 8.2 gets security updates only until the end of 2026, so your application has to move to a newer version anyway. Now PHP 8.6 is out, and the obvious question is: why not go straight to the latest? Whether that works isn’t up to PHP but to your framework, your CMS, and your plugins. And a change to sessions can disrupt exactly the moment your customers return from the payment provider. Here is what PHP 8.6 brings, who is ready for it, and which version to choose now.

By Dimitri König6 min read

PHP versions with release date and end of security updates
VersionSecurity updates untilTime leftStatus
PHP 8.6latest 8.6.0released Nov 19, 2026SupportedDec 31, 20301,498 days left1,498 days leftSupported
PHP 8.5latest 8.5.13released Nov 20, 2025SupportedDec 31, 20291,133 days left1,133 days leftSupported
PHP 8.4latest 8.4.28released Nov 21, 2024SupportedDec 31, 2028768 days left768 days leftSupported
PHP 8.3latest 8.3.37released Nov 23, 2023Security updates onlyDec 31, 2027402 days left402 days leftSecurity updates only
PHP 8.2latest 8.2.36released Dec 8, 2022Support ending soonDec 31, 202637 days left37 days leftSupport ending soon
PHP 8.1latest 8.1.34released Nov 25, 2021No longer supportedDec 31, 2025expiredexpiredNo longer supported
PHP 8.0latest 8.0.30released Nov 26, 2020No longer supportedNov 26, 2023expiredexpiredNo longer supported
PHP 7.4latest 7.4.33released Nov 28, 2019No longer supportedNov 28, 2022expiredexpiredNo longer supported
Data: endoflife.date and php.net Supported Versions, retrieved Nov 24, 2026. Time left calculated on Nov 24, 2026.

What’s new in PHP 8.6?

Most of the new features in PHP 8.6 are tools for developers. php.net highlights six: functions can be prepared with some of their arguments (partial function application), readonly properties can have default values, and there is a new clamp() function for value ranges, a \Time\Duration class for measured time spans, a SortDirection enum for sort order, and a polling API for applications with very many simultaneous connections.

For you as the owner, two other changes in PHP 8.6 matter. First, sessions get safer default settings, which can disrupt existing flows. Second, PHP gets stricter: errors that used to be swallowed silently now produce an error message.

What can break in an older application with PHP 8.6?

When moving to PHP 8.6, according to php.net’s migration guide, mainly the following can break:

  • Session cookie with SameSite=Lax. The browser no longer sends the session cookie when another website sends users back to yours with a POST form. That typically happens when customers return from the payment provider or log in through an external service. The result: the customer looks logged out and the cart looks empty. If your application needs this path, the setting has to be configured deliberately.
  • Session cookie hidden from JavaScript. If JavaScript in your application reads the session cookie, it no longer gets anything.
  • Strict mode for session IDs. Custom solutions that store sessions themselves, for example in the database, need two additional methods or have to switch the old mode back on explicitly.
  • Errors instead of silence. Many functions now throw an error when they get invalid values instead of truncating or ignoring them. Code that has quietly passed wrong values for years then stops with an error message.
  • Write errors get reported. If writing a file fails when it’s closed, fclose(), file_put_contents(), and copy() now return false. Until now, the failure went unnoticed.
  • Deprecated functions. Several things are newly marked as deprecated in PHP 8.6, such as the mbstring regex functions, spl_object_hash(), and aliases like is_integer(). For now that only produces warnings in the log; they’ll be removed with PHP 9.

Overall, the step from PHP 8.4 or 8.5 to 8.6 is smaller than earlier ones, such as from PHP 7.4 to 8. How much work an upgrade from older versions takes is covered in the guide PHP upgrade.

Do frameworks and CMSs support PHP 8.6 yet?

On the release day of PHP 8.6, hardly any framework or CMS officially supports the new version. As of November 19, 2026, according to the vendors:

System PHP 8.6 Status
Laravel 12 and 13 Not approved yet Officially up to PHP 8.5; support for PHP 8.6 is being worked on as experimental
Symfony 6.4, 7.4, and 8.1 No formal approval The automated tests already run on PHP 8.6
TYPO3 13 and 14 Not approved yet System requirement “PHP >= 8.2.0 <= 8.5.99”; adjustments are underway
WordPress From WordPress 7.2 WordPress 7.1 officially up to PHP 8.5; WordPress 7.2 is due on December 8, 2026, with PHP 8.6
Shopware 6.6 and 6.7 Can’t be installed The dependencies allow only PHP 8.2 to 8.5; the update is waiting on third-party libraries
Drupal Not approved yet No Drupal branch supports PHP 8.6; work on it is underway
Magento 2.4.9 Not approved yet System requirement PHP 8.5; the development version also stops at PHP 8.5

Whether a custom application without a framework runs on PHP 8.6 is decided by your code and every library Composer installs. The tool Rector already has rules for PHP 8.6 and converts part of the affected code automatically.

Do Swiss hosts offer PHP 8.6 yet?

Swiss hosts don’t offer PHP 8.6 yet. On the morning of November 19, 2026, the release day, none of the hosts checked offered PHP 8.6 or named a date, including Hostpoint, Infomaniak, METANET, hosttech, green.ch, HOSTFACTORY, Onlime, and FireStorm. hosttech and Onlime set up new hosting plans with PHP 8.5.

More important for your application than whether PHP 8.6 is on offer is the default version your host sets. Hostpoint says it changes the default regularly; hosttech doesn’t announce it at all because, it says, it only affects newly set up domains. If no version is pinned for your application, it may one day run on a newer one without anyone having checked it. How long the hosts keep offering old versions is shown in the host overview in the PHP end-of-life guide.

The Swiss host Onlime has already anticipated part of PHP 8.6: since October 28, 2026, the new, safer session settings also apply to PHP 8.2 to 8.5 there. If you’ve noticed since late October 2026 that customers are logged out after paying, this is a possible cause.

Security release for PHP 8.2 to 8.5 of November 19, 2026

Along with PHP 8.6, the PHP project released versions 8.5.13, 8.4.28, 8.3.37, and 8.2.36 on November 19, 2026. They close 18 vulnerabilities, seven of which the PHP project rates as critical. According to its advance notice, the critical ones require a non-default configuration or an uncommon setup. Two examples of such conditions:

  • PHP-FPM with reused connections. If the web server keeps the connection to PHP open, with nginx for example through fastcgi_keep_conn on, an attacker may be able to run their own PHP code without logging in (CVE-2026-129289).
  • Session upload progress. Session upload progress already played a role in the PHP vulnerabilities of October 2026. If parts of an application read the same sessions in different formats, code execution is possible (CVE-2026-115560). The fix turns the feature off by default.

The PHP project reports no exploitation of the vulnerabilities fixed on November 19, 2026, and its advisories don’t list PHP 8.6.0 as affected. If your application runs on PHP 8.2 to 8.5, ask your hosting provider whether the update is installed. Many Swiss hosts patch through backports, so the version number shown says little. Onlime made its web servers reachable only from Switzerland, Liechtenstein, and Austria as a precaution during its maintenance on the afternoon of November 19, 2026.

For PHP 8.2, the update to 8.2.36 is one of the last: support for PHP 8.2 ends on December 31, 2026.

Which PHP version should you choose now?

  • If your application runs on PHP 8.2 or older: Move to PHP 8.4 or 8.5 by the end of 2026, depending on what your framework and plugins support. Waiting for PHP 8.6 only extends the time without security updates.
  • If your application runs on PHP 8.3, 8.4, or 8.5: No rush. PHP 8.3 is covered until the end of 2027, 8.4 until the end of 2028, and 8.5 until the end of 2029. Plan for PHP 8.6 once your framework approves it.
  • If you’re building something new: Develop with PHP 8.6 in mind and set the session settings explicitly from the start.

For every PHP version change: test on a copy first, check the logs for warnings, and run through the flows where money is involved, especially payment and login.

If nobody knows your application anymore, the Takeover Assessment from Unique-P shows which PHP version is feasible for it and what the path there costs.

Sources

  1. [1]PHP 8.6 Release Announcement · php.net
  2. [2]PHP 8.6.0 Released, PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 Released · php.net, November 19, 2026
  3. [3]ChangeLog PHP 8.5.13 · php.net, November 19, 2026
  4. [4]GHSA-qc49-hpvq-g2w6: PHP-FPM request smuggling through an unread HTTP request body · php-src, November 19, 2026
  5. [5]GHSA-658j-r8rw-q6mx: Session serializer mismatch can lead to remote code execution · php-src, November 19, 2026
  6. [6]Critical PHP Security Release / Wartung Webserver (in German) · Onlime, November 19, 2026
  7. [7]Migrating from PHP 8.5.x to PHP 8.6.x, Backward incompatible changes · php.net
  8. [8]Migrating from PHP 8.5.x to PHP 8.6.x, Deprecated features · php.net
  9. [9]Migrating from PHP 8.5.x to PHP 8.6.x, Other changes · php.net
  10. [10]Supported Versions · php.net
  11. [11]Laravel Release Notes, Support Policy · Laravel
  12. [12]Experimental supports for PHP 8.6 · Laravel, pull request, as of November 17, 2026
  13. [13]Symfony Releases · Symfony
  14. [14]TYPO3 14 System Requirements · TYPO3
  15. [15]PHP Compatibility and WordPress Versions · Make WordPress Core
  16. [16]General: Officially declare support for PHP 8.6 · WordPress, November 10, 2026
  17. [17]Add PHP 8.6 support (draft) · Shopware, as of November 18, 2026
  18. [18]Drupal PHP Requirements · Drupal.org
  19. [19][meta] PHP 8.6 support · Drupal.org
  20. [20]Adobe Commerce System Requirements · Adobe
  21. [21]Sicherere PHP-Session-Standards für PHP 8.2–8.5 (in German) · Onlime, October 28, 2026
  22. [22]Changing PHP versions · Hostpoint Support Center
  23. [23]PHP-Versionen (in German) · hosttech, updated October 22, 2026

Frequently asked questions.

Until when does PHP 8.6 get updates?

PHP 8.6 gets bug fixes until December 31, 2028, and security updates until December 31, 2030. That follows from php.net’s rule: every version gets two years of active support and then two years of security updates only, each until the end of the year. PHP 8.6 is therefore covered one year longer than PHP 8.5.

Does my application have to switch to PHP 8.6 now?

No, your application doesn’t have to switch to PHP 8.6 now. The urgent move is away from PHP 8.2, which gets its last security updates on December 31, 2026. The target for that is PHP 8.4, covered until the end of 2028, or PHP 8.5, covered until the end of 2029. Switching to PHP 8.6 makes sense once your framework or CMS and all plugins have approved it.

PHP versions and their deadlines

Do I need to do anything about the security release of November 19, 2026?

Yes, you should have someone check whether the PHP security release of November 19, 2026, is installed. The update to PHP 8.5.13, 8.4.28, 8.3.37, or 8.2.36 closes 18 vulnerabilities, seven of them critical. According to the PHP project, the critical ones require a non-default configuration or an uncommon setup, such as PHP-FPM with reused connections or upload progress switched on. On a hosting plan, ask your hosting provider whether the update is installed. On your own server, your developer installs it and checks the configuration.

Does WordPress run on PHP 8.6?

WordPress officially runs on PHP 8.6 only from version 7.2, and WordPress 7.2 is due on December 8, 2026. The WordPress developers declared support for PHP 8.6 for that release on November 10, 2026, saying all known issues have been fixed. According to the core team’s handbook, WordPress 7.1 is approved only up to PHP 8.5. With WordPress, plugins and the theme usually decide whether a new PHP version works anyway.

WordPress and the end of PHP 8.2

Is PHP 8.6 faster?

How much faster PHP 8.6 is remains open on release day (November 19, 2026): php.net mentions individual optimizations, for example in printf(), JSON encoding, and caching closures, but gives no numbers, and independent measurements don’t exist yet. Between PHP 8.4 and 8.5, benchmarks found no visible difference for WordPress, Laravel, and Symfony. If your application is slow, the cause is almost always in the code, the database, or the cache.

Does a PHP upgrade make it faster?

After the switch, customers come back from the payment provider logged out. Is PHP 8.6 the cause?

Logouts after customers return from the payment provider may well be caused by PHP 8.6: the new version sets the session cookie to SameSite=Lax by default. If a payment provider or a login service sends users back to your website with a POST form, the browser no longer sends the session cookie, and the cart or the login seems lost. The fix is a deliberate setting in the configuration, not going back to an old PHP version. At the Swiss host Onlime, these defaults have applied to PHP 8.2 to 8.5 as well since October 28, 2026.

Getting your web application running again