What's New in PHP 8.6
- ID
- 48612
- Status
- summarized
- Published
- 19 Nov 2026, 5:27 PM
- Fetched
- 20 Nov 2026, 2:59 PM
- Provider
- Hacker News
- Category
- dev-community
- Original URL
- https://www.php.net/releases/8.6/en.php
- Source URL
- https://hnrss.org/best
Summary
- Score
- 6.5
- Created
- 20 Nov 2026, 3:00 PM
- Tags
- Audience
- developersvibe_coders
What happened
PHP 8.6.0 shipped on November 19, 2026 with Partial Function Application (using ? and ... placeholders to return a Closure that waits for the remaining arguments), a new \Time\Duration class with nanosecond precision over a 250+ year range, and a Polling API exposing epoll/kqueue-style I/O multiplexing to event-loop libraries like ReactPHP and AMPHP. Smaller additions include clamp(), a SortDirection enum, and readonly property defaults so fixed values no longer need constructor assignment. The release thread drew 284 points and 131 comments on Hacker News.
Why it matters
The Duration class and Partial Function Application together let you replace the min($delay, 30_000_000) usleep microsecond arithmetic in retry/backoff code with typed Duration objects and pre-configured closures — if you maintain a PHP service with hand-rolled backoff or timeout logic, that's a concrete refactor to schedule when you move to 8.6. The Polling API is the bigger signal for teams running ReactPHP/AMPHP workers: native epoll/kqueue multiplexing is now a language-level primitive rather than purely a userland concern, so re-check your event-loop library's minimum PHP version before planning an upgrade.
Discussion angle
Is Partial Function Application worth adopting over plain arrow functions and closures in your codebase, or does the ? placeholder syntax make call sites harder to read for teammates — and who in the room is actually running ReactPHP/AMPHP and would benefit from the Polling API?