# PHP 8.6

PHP 8.6 is a pre-release version of PHP, a general-purpose scripting language especially suited to web development.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## What's New in PHP 8.6

DevFeed: [What's New in PHP 8.6](<https://devfeed.tech/articles/what-s-new-in-php-8-6-33305.md>)

Original publisher: [Read original article](<https://freek.dev/3192-whats-new-in-php-86>)

Author: Freek Van der Herten (freek@spatie.be)

Published: 2026-09-16T12:30:30Z

Content type: release

Language: en

Sources: [freek.dev - all blogposts](<https://devfeed.tech/sources/freek-dev-all-blogposts.md>)

Topics: [PHP 8.6](<https://devfeed.tech/topics/php-8-6.md>), [PHP](<https://devfeed.tech/topics/php.md>), [function](<https://devfeed.tech/topics/function.md>)

Tags: [improvements](<https://devfeed.tech/tags/improvements.md>), [language](<https://devfeed.tech/tags/language.md>), [php](<https://devfeed.tech/tags/php.md>), [php-8-6](<https://devfeed.tech/tags/php-8-6.md>), [standard-library](<https://devfeed.tech/tags/standard-library.md>)

### AI overview

An overview of upcoming PHP 8.6 changes, including partial function application, clamp(), the Duration class, and other language and standard library improvements.

### Source excerpt

A concise overview of what's coming in PHP 8.6, including partial function application, clamp(), the new Duration class, and several smaller language and standard library improvements. Read more

## What's new in PHP 8.6

DevFeed: [What's new in PHP 8.6](<https://devfeed.tech/articles/what-s-new-in-php-8-6-33288.md>)

Original publisher: [Read original article](<https://freek.dev/3174-whats-new-in-php-86>)

Author: Freek Van der Herten (freek@spatie.be)

Published: 2026-08-05T12:14:26Z

Content type: article

Language: en

Sources: [freek.dev - all blogposts](<https://devfeed.tech/sources/freek-dev-all-blogposts.md>)

Topics: [PHP 8.6](<https://devfeed.tech/topics/php-8-6.md>), [PHP](<https://devfeed.tech/topics/php.md>), [API](<https://devfeed.tech/topics/api.md>), [function](<https://devfeed.tech/topics/function.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [features](<https://devfeed.tech/tags/features.md>), [function](<https://devfeed.tech/tags/function.md>), [improvements](<https://devfeed.tech/tags/improvements.md>), [news](<https://devfeed.tech/tags/news.md>), [php](<https://devfeed.tech/tags/php.md>), [php-8-6](<https://devfeed.tech/tags/php-8-6.md>)

### AI overview

The article surveys notable additions coming in PHP 8.6, including partial function application, a new polling API, readonly property defaults, and smaller improvements and deprecations.

### Source excerpt

Brent surveys the most notable additions coming in PHP 8.6, including partial function application, the new polling API, readonly property defaults, and several smaller improvements and deprecations. Read more

## The new clamp() function in PHP 8.6

DevFeed: [The new clamp() function in PHP 8.6](<https://devfeed.tech/articles/the-new-clamp-function-in-php-8-6-20476.md>)

Original publisher: [Read original article](<https://www.amitmerchant.com/the-clamp-function-in-php-86/>)

Author: Amit Merchant

Published: 2025-12-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [Amit Merchant](<https://devfeed.tech/sources/amit-merchant.md>)

Topics: [PHP 8.6](<https://devfeed.tech/topics/php-8-6.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Development](<https://devfeed.tech/topics/development.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [development](<https://devfeed.tech/tags/development.md>), [function](<https://devfeed.tech/tags/function.md>), [php](<https://devfeed.tech/tags/php.md>), [php-8-6](<https://devfeed.tech/tags/php-8-6.md>), [range](<https://devfeed.tech/tags/range.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

This tutorial introduces the clamp() function planned for PHP 8.6. It explains how the function constrains a value to an inclusive minimum and maximum, including its behavior when the value is outside the range and when the bounds are invalid. It also covers named parameters and practical use cases such as user input, UI sliders, pagination, rate limiting, dates, geometry, and lexicographic strings.

### Source excerpt

You know how sometimes you want to ensure that a value stays within a specific range? Maybe you're working with user input, configuration values, or any scenario where you need to enforce boundaries.

## Partial Function Application is coming in PHP 8.6

DevFeed: [Partial Function Application is coming in PHP 8.6](<https://devfeed.tech/articles/partial-function-application-is-coming-in-php-8-6-20473.md>)

Original publisher: [Read original article](<https://www.amitmerchant.com/partial-function-application-php-86/>)

Author: Amit Merchant

Published: 2025-12-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [Amit Merchant](<https://devfeed.tech/sources/amit-merchant.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [PHP 8.6](<https://devfeed.tech/topics/php-8-6.md>), [Code](<https://devfeed.tech/topics/code.md>), [servers](<https://devfeed.tech/topics/servers.md>)

Tags: [argument](<https://devfeed.tech/tags/argument.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [callback](<https://devfeed.tech/tags/callback.md>), [closure](<https://devfeed.tech/tags/closure.md>), [function](<https://devfeed.tech/tags/function.md>), [http](<https://devfeed.tech/tags/http.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [php](<https://devfeed.tech/tags/php.md>), [php-8-6](<https://devfeed.tech/tags/php-8-6.md>), [request](<https://devfeed.tech/tags/request.md>), [types](<https://devfeed.tech/tags/types.md>)

### AI overview

This tutorial introduces Partial Function Application in PHP 8.6. It explains how placeholders create pre-configured Closures, covers multiple holes, named and variadic arguments, and shows a practical example for adding an Authorization header to HTTP requests.

### Source excerpt

Ever reach for a simple callback and end up writing a tiny novella--an arrow function stuffed with types, reordered parameters, and boilerplate just to pass one value through?