<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/waiting-for-php-8-6-release-bolun9dhg" -->

---
title: Waiting for php 8.6 release | daily.dev
description: A preview of PHP 8.6's upcoming pipe operator syntax shows how it enables chaining function calls in a more readable, functional style. Code examples compare...
canonical: https://daily.dev/posts/waiting-for-php-8-6-release-bolun9dhg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Waiting for php 8.6 release | daily.dev
og:description: A preview of PHP 8.6's upcoming pipe operator syntax shows how it enables chaining function calls in a more readable, functional style. Code examples compare...
og:url: https://daily.dev/posts/waiting-for-php-8-6-release-bolun9dhg
og:image: https://api.daily.dev/og/posts/bOlun9dHg.png
og:image:alt: Waiting for php 8.6 release
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Waiting for php 8.6 release

**[Maksym Tymofeiev](https://daily.dev/sources/sipmygd4ld90izsdseqh7)** · [@rucaua](https://daily.dev/rucaua) · 1 min read · 29 upvotes · 6 comments

## Summary

A preview of PHP 8.6's upcoming pipe operator syntax shows how it enables chaining function calls in a more readable, functional style. Code examples compare current verbose nested function calls against the new pipe syntax using trim, str_replace, and strtolower, including a proposed partial function application shorthand using a placeholder argument.

## Content

Partial Function support will be amazing

Before:

```php
$output = $input

|> trim(...)

|> (fn (string $string) => str_replace(' ', '-', $string))

|> (fn (string $string) => str_replace(['.', '/', '…'], '', $string))

|> strtolower(...);
```

After:

```php
$slugReplace = str_replace([' ', '_'], '-', ?);
$output = $input 
    |> trim(...)
    |> str_replace(' ', '-', ?)
    |> str_replace(['.', '/', '…'], '', ?)
    |> strtolower(...);
```

## Community discussion

Top comments from developers on daily.dev.

**@sam7work** · 7 upvotes

> i am still conflicted about the |> thing , it feels as alien as martian tea , but yeah, the changes add some sugar to it, so maybe i will take a sip then , hopefully i won't turn into a gremlin

**@szwwwed** · 5 upvotes

> Why the partial function ($slugReplace) is not used anywhere?

**@deondazy** · 0 upvotes

> That syntax will have some getting used to

**@agustinbarrientos** · 0 upvotes

> My `|>` threshold requires every step to stay unary. Partial application helps, but a pipeline full of two-hole functions would still be harder to read than nested calls.

## Similar posts on daily.dev

- [PHP in 2026](https://daily.dev/posts/php-in-2026-lsdo240ed) · stitcher.io · 123 upvotes · 3 comments
- [Partial Function Application is coming in PHP 8.6](https://daily.dev/posts/partial-function-application-is-coming-in-php-8-6-3doqxg6cm) · FREEK.DEV · 41 upvotes · 0 comments
- [Partial function application in PHP 8.6](https://daily.dev/posts/partial-function-application-in-php-8-6-evdfojfen) · stitcher.io · 39 upvotes · 0 comments
- [What's new in PHP 8.6](https://daily.dev/posts/what-s-new-in-php-8-6-eixar55ou) · stitcher.io · 103 upvotes · 8 comments

---

Tags: [#php](https://daily.dev/tags/php), [#functional-programming](https://daily.dev/tags/functional-programming)

[View this post on daily.dev](https://daily.dev/posts/waiting-for-php-8-6-release-bolun9dhg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/waiting-for-php-8-6-release-bolun9dhg","headline":"Waiting for php 8.6 release","text":"A preview of PHP 8.6's upcoming pipe operator syntax shows how it enables chaining function calls in a more readable, functional style. Code examples compare current verbose nested function calls against the new pipe syntax using trim, str_replace, and strtolower, including a proposed partial function application shorthand using a placeholder argument.","url":"https://daily.dev/posts/waiting-for-php-8-6-release-bolun9dhg","datePublished":"2026-08-26T17:08:04.353Z","dateModified":"2026-09-13T20:56:48.884Z","author":{"@type":"Person","name":"Maksym Tymofeiev","url":"https://daily.dev/rucaua","image":"https://media.daily.dev/image/upload/s--caTJyFHC--/f_auto/v1736549445/avatars/avatar_sIPMygD4Ld90iZsdsEqh7","description":"15+y full stack development. I show up to get things done. I always speak the truth.\n","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":14550}},"image":"https://media.daily.dev/image/upload/s---zH6Wxh_--/f_auto/v1787764084/posts/bOlun9dHg?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":29},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":6}],"comment":[{"@type":"Comment","text":"i am still conflicted about the |\u0026gt; thing , it feels as alien as martian tea , but yeah, the changes add some sugar to it, so maybe i will take a sip then , hopefully i won’t turn into a gremlin","datePublished":"2026-08-27T12:06:57.947Z","url":"https://daily.dev/posts/bOlun9dHg#c-cIplGbTGR","author":{"@type":"Person","name":"Sam","url":"https://daily.dev/sam7work","image":"https://lh3.googleusercontent.com/a/ACg8ocJGz1oRsDNA5jHaL8S_Dm_S69r5oVuMT_253w26IC3wacnjq1U=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7}},{"@type":"Comment","text":"Why the partial function ($slugReplace) is not used anywhere?","datePublished":"2026-08-28T06:23:52.510Z","url":"https://daily.dev/posts/bOlun9dHg#c-HCGsqJXM1","author":{"@type":"Person","name":"Dawid Szwed","url":"https://daily.dev/szwwwed","image":"https://lh3.googleusercontent.com/a/ALm5wu2qeSBVbWgxf7FJWJcpnHXZDEdVSGMszIZcHiBtww=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5}},{"@type":"Comment","text":"That syntax will have some getting used to","datePublished":"2026-08-29T19:31:07.370Z","url":"https://daily.dev/posts/bOlun9dHg#c-WCIK8iE1F","author":{"@type":"Person","name":"Deon","url":"https://daily.dev/deondazy","image":"https://media.daily.dev/image/upload/f_auto/v1636547078/avatars/HI5WU320eZ0AAfMlgSIeb"}},{"@type":"Comment","text":"My |\u0026gt; threshold requires every step to stay unary. Partial application helps, but a pipeline full of two-hole functions would still be harder to read than nested calls.","datePublished":"2026-08-30T05:18:33.092Z","url":"https://daily.dev/posts/bOlun9dHg#c-PqD90giY4","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/sipmygd4ld90izsdseqh7","name":"Maksym Tymofeiev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Maksym Tymofeiev","item":"https://daily.dev/sources/sipmygd4ld90izsdseqh7"},{"@type":"ListItem","position":3,"name":"Waiting for php 8.6 release"}]}
```

