PHP 8.6 arrived on November 19 with partial function application, the Duration class and safer session defaults. What it brings, what it may break and why the urgent task is moving off PHP 8.2 before year end.
On November 19, 2026, the PHP project released PHP 8.6.0, the new major version of the programming language behind many websites and business systems, and it is out now for download. According to the official schedule, it will receive bug fixes until December 31, 2028 and security patches until December 31, 2030.
What is new in PHP 8.6
- Partial function application: lets you fix some of a function's arguments in advance, using the
?and...placeholders, and supply the rest later. - The
Time\Durationclass represents time spans (waits, timeouts or measurements) with nanosecond precision, independent of time zones. - The
Io\PollAPI watches many connections at once using the most efficient mechanism on each operating system, and is meant for libraries such as ReactPHP and AMPHP. - The
clamp()function keeps a value within a range, and theSortDirectionenum gives libraries one shared way to express ascending or descending order. - It also brings default values for readonly properties, easier handling of file and connection errors, post-quantum encryption in the Sodium extension and performance gains, such as faster JSON encoding.
What changes and may break
Sessions are safer by default: session.use_strict_mode and session.cookie_httponly are turned on, and the session cookie now uses SameSite=Lax. In addition, functions such as mb_ereg(), mb_split(), spl_object_hash() and strcoll() are deprecated, along with the is_double(), is_long() and is_integer() aliases. A deprecated function still works, but it raises notices and may be removed in a future version.
When to upgrade
There is no need to switch to PHP 8.6 on day one: it is better to wait until your plugins, themes and libraries support it, and to test on a copy first. The urgent task is at the other end: PHP 8.2 stops receiving security patches on December 31, 2026, and PHP 8.1 and earlier no longer get them. On the same day, November 19, PHP also fixed 18 security flaws in its supported versions.
What to do
- Check which PHP version each of your company's sites or systems runs.
- If you are on PHP 8.2 or earlier, plan the upgrade before year end to 8.4, 8.5 or 8.6, depending on what your applications support.
- Read the official migration guide and test the application on a copy with deprecation notices turned on; pay special attention to logins.
- Move to production once tests pass, with a backup and a way to roll back to the previous version.
How we help you
With custom software development we review the code of your PHP systems, fix whatever stops working and carry out the upgrade in stages. If your site needs a refresh, our web design team gets it ready for the new versions. Book a review of your site.
Sources
- PHP: PHP 8.6.0 announcement (November 19, 2026)
- PHP: what is new in PHP 8.6 (November 19, 2026)
- PHP: PHP 8.6 migration guide (accessed November 20, 2026)
- PHP: supported versions (accessed November 20, 2026)
Source: PHP.net