---
title: "Partial function application in PHP 8.6"
url: https://daily.dev/posts/partial-function-application-in-php-8-6-evdfojfen
source_url: https://stitcher.io/blog/php-86-partial-function-application
type: article
source: "stitcher.io"
published: 2026-01-23T08:09:29.895Z
updated: 2026-01-23T08:09:50.293Z
tags: ["php", "functional-programming"]
reading_time: 5
upvotes: 39
comments: 0
language: 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.

# Partial function application in PHP 8.6

**[stitcher.io](https://daily.dev/sources/stitcher)** · 5 min read · 39 upvotes · 0 comments

## Summary

PHP 8.6 will introduce partial function application (PFA), allowing developers to create function references with some parameters pre-filled using placeholders. The `?` placeholder represents a single argument, while `...` captures zero or more parameters. This feature builds on PHP 8.1's first-class callables and pairs especially well with PHP 8.5's pipe operator, eliminating the need for verbose closure wrappers. PFA supports multiple placeholders, named arguments, object methods, static methods, and magic methods, with clear error messages for invalid usage.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://stitcher.io/blog/php-86-partial-function-application>

---

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/partial-function-application-in-php-8-6-evdfojfen)
