PHP 8.6.0 was released on 19 November 2026 with partial function application, a new Duration class for time spans, a polling API for handling many connections at once and a new clamp() function. For anyone running servers, though, the more pressing date is another one: PHP 8.2 stops receiving security fixes on 31 December 2026. Security releases for every supported branch shipped the same day: 8.5.13, 8.4.28, 8.3.37 and 8.2.36.
PHP 8.6 key points in 20 seconds
- New: partial function application, Duration, the Io Poll API, clamp() and the SortDirection enum.
- Support: 8.6 gets security fixes until 31 December 2030.
- Act now: PHP 8.2 reaches end of life on 31 December 2026.
The release followed the usual annual schedule: alphas in July, beta in August, feature freeze in September and several release candidates through November. This overview draws on the analysis published by programacion.net and the official announcement on php.net.
What is new in the language
The headline feature is partial function application. Calling a function with a question mark in place of an argument, or with three dots for all the remaining ones, does not run it: PHP returns a Closure that waits for the missing arguments. It works with any callable, internal functions included, and fills the gap left by the pipe operator introduced in PHP 8.5.
$addOne = add(1, ?);
$stripSpaces = str_replace(' ', '', ?);
$slug = 'Hello World'
|> strtolower(...)
|> str_replace(' ', '-', ?);
// hello-worldCode language: PHP (php)The Duration class, in the new Time namespace, represents a fixed span of time with nanosecond precision and no calendar units such as days or months, unlike DateInterval. It is immutable, comparable with standard operators and built with constructors such as fromSeconds() and fromMilliseconds(). It is a natural fit for timeouts, retries and metrics, where plain integers with no unit have been the norm.
The list is rounded out by clamp(), which returns a value if it falls within a range or the nearest bound otherwise, the SortDirection enum for expressing sort order, and default values for readonly properties.
final class Config
{
public readonly int $timeout = 30;
}Code language: PHP (php)The Io Poll API matters most on servers
For long-running PHP services such as websockets, queue workers and daemons, the most relevant piece is the new Io Poll API. It watches many streams at once using the best mechanism on each platform: epoll on Linux, kqueue on BSD and macOS, event ports on Solaris or WSAPoll on Windows. According to programacion.net, it replaces stream_select(), which in practice tends to top out around 1,024 connections. It is designed as a shared foundation for event-loop libraries such as ReactPHP and AMPHP, so most of the benefit will arrive once those libraries adopt it.
Extensions change too: structured stream errors with StreamException and StreamError, post-quantum key encapsulation in Sodium (X-Wing and ML-KEM-768, with libsodium 1.0.22 or later), mysqli::quote_string(), ZipArchive::openString() and CURLOPT_SEEKFUNCTION in cURL.
What breaks and how to plan the upgrade
The backward-incompatible changes are small but can break older code. trim(), ltrim() and rtrim() now strip form feed by default; more functions throw ValueError on invalid arguments, including array_filter(), pathinfo(), scandir(), getenv(), file_exists(), sleep() and number_format(); and base_convert(), bindec(), hexdec() and octdec() warn when they lose precision. Deprecations include return inside finally, returning values from __construct() or __destruct(), metaphone(), and using namespace, readonly, let, is or _ as identifiers, which are reserved for future features.
| Branch | Released | Active support | Security only |
|---|---|---|---|
| 8.2 | 8 Dec 2022 | Ended | 31 Dec 2026 |
| 8.3 | 23 Nov 2023 | Ended | 31 Dec 2027 |
| 8.4 | 21 Nov 2024 | 31 Dec 2026 | 31 Dec 2028 |
| 8.5 | 20 Nov 2025 | 31 Dec 2027 | 31 Dec 2029 |
| 8.6 | 19 Nov 2026 | 31 Dec 2028 | 31 Dec 2030 |
Given those dates, the sensible move in production is to get every application off PHP 8.2 before the end of the year and target 8.4 or 8.5, where extensions and frameworks are already mature. PHP 8.6 is best tested first in staging with deprecation notices enabled, waiting for distribution packages, the usual third-party repositories and any PECL extensions in use to confirm compatibility.
Frequently asked questions
When was PHP 8.6 released?
On 19 November 2026, alongside security releases for the 8.2, 8.3, 8.4 and 8.5 branches.
When does PHP 8.2 reach end of life?
It receives security fixes only until 31 December 2026 and is unsupported after that.
What is partial function application?
Calling a function with ? or … in place of some arguments to get a Closure that takes the missing ones.
Should I move production to PHP 8.6 now?
Test it in staging first and confirm extension and framework compatibility. The urgent task is leaving PHP 8.2.
Sources:
