The Daily Commit · Section Edition Front Page PHP AI Dev EN DE FR ES

The Php Times

RFC Watch — Ecosystem

[RFC] Pipe Assignment Operator


The RFC proposes a compound assignment form of the pipe operator: $x |>= callable becomes shorthand for $x = $x |> callable.

PHP INTERNALS ([RFC]/[VOTE]), July 10, 2026 curated by Georg

Chaining is supported. An implementation including tests has been submitted as a pull request against php-src, and discussion is open on the internals list.

Caleb White has introduced a new RFC to implement a pipe assignment operator in PHP. The proposal introduces the |>= operator, which serves as a compound assignment shorthand for piping a value through a callable and assigning the result back to the same variable.

This new syntax allows for the chaining of multiple operations. To support the proposal, a pull request (PR #22633) has been submitted to the php-src repository, which includes the necessary implementation and a suite of tests.

Following the announcement on the internals mailing list, Tim Düsterhus noted a missing "Abstain" option in the RFC's voting widget, which has since been corrected to align with current PHP RFC templates.

Read the original source ↗

Rate this article: 0

Readers’ Forum

No contributions yet — open the debate.

← Ecosystem — Page B1

"All the Code That's Fit to Ship" · The Daily Commit · Screen edition · Imprint · Privacy Policy