Web Programming

WatchPHP & Laravel

PHP 8.6 brings partial function application

Issue #1

RC1 lands on September 24 and general availability on November 19. Leave ? or ... in place of arguments and you get a closure back.

Karlen TriminoSenior Full-Stack Engineer

Leer en español
Photo: Daniil Komov / Pexels

What to do

Add the 8.6 RC to your CI matrix this week so November isn't a surprise.

The schedule: RC1 on September 24, more RCs on October 8, October 22 and November 5, and general availability on November 19, 2026.

The feature most people will feel is partial function application, which passed 33 to 0. Leave ? or ... in place of arguments and you get a closure back:

php
$f = foo(1, ?, 3);   // closure that waits for $b
$g = foo(1, ...);    // closure that waits for the rest
$out = array_map(str_replace('hello', 'hi', ?), $lines);

It pairs naturally with the pipe operator that arrived in PHP 8.5. PHP 8.6 also adds a native clamp() function.

Sources