<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-s-new-in-php-8-6-cwghaztnl" -->

---
title: What's New in PHP 8.6 | daily.dev
description: PHP 8.6 ships November 19, 2026, with a feature freeze already set for September 22 and RC1 two days later. Highlights include partial function application (a...
canonical: https://daily.dev/posts/what-s-new-in-php-8-6-cwghaztnl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What's New in PHP 8.6 | daily.dev
og:description: PHP 8.6 ships November 19, 2026, with a feature freeze already set for September 22 and RC1 two days later. Highlights include partial function application (a...
og:url: https://daily.dev/posts/what-s-new-in-php-8-6-cwghaztnl
og:image: https://api.daily.dev/og/posts/CwgHazTNl.png
og:image:alt: What's New in PHP 8.6
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.

# What's New in PHP 8.6

**[Laravel News](https://daily.dev/sources/ln)** · 5 min read · 55 upvotes · 4 comments

## Summary

PHP 8.6 ships November 19, 2026, with a feature freeze already set for September 22 and RC1 two days later. Highlights include partial function application (a `?` placeholder to create closures from partially applied functions), a new `clamp()` function, a `Time\Duration` class with nanosecond precision, readonly properties that can now have default values, parameter-level doc comments, a cross-platform `Io\Poll` API to replace `stream_select()`, a global `SortDirection` enum, `__debugInfo()` support for enums, a unified stream error-handling model, URI builder classes following up on PHP 8.5's URI extension, and more secure default session settings (`use_strict_mode`, `cookie_httponly`, and `cookie_samesite` all tightened for new installs).

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/php-8-6>

## Questions this post answers

### When is PHP 8.6 officially released?

PHP 8.6 reaches general availability on November 19, 2026. The release timeline includes a feature freeze on September 22, 2026, RC1 two days later on September 24, and RC4 on November 5, 2026, with release managers Daniel Scherzer, Matteo Beccati, and Joe Ferguson overseeing the cycle.

_Developers planning PHP upgrades can follow release timelines like this one on daily.dev._

### How does the new clamp() function work in PHP 8.6?

clamp() returns a value if it falls within given bounds, or the nearest bound otherwise, for example clamp(101, min: 0, max: 100) returns 100. It works with any comparable type including strings and DateTime objects, throws a ValueError if min exceeds max, and replaces the error-prone min(max($value, $min), $max) pattern.

_Track new standard-library functions like this on daily.dev before refactoring bounds-checking code._

### What changes with readonly properties in PHP 8.6?

Readonly properties can now have a default value, which was a compile-time error before PHP 8.6. This makes it easier to satisfy get-only interface properties introduced in PHP 8.4 with a fixed value, though readonly semantics are otherwise unchanged and the property still cannot be reassigned after initialization.

_daily.dev helps developers stay ahead of language-level changes like readonly property rules._

## Community discussion

Top comments from developers on daily.dev.

**@superstarr** · 7 upvotes

> Please do not use gradients alongside with PHP. It looks modern.

**@ristotoldsep** · 3 upvotes

> Partial application and stricter sessions? PHP is quietly becoming the adult in the room.

**@sam7work** · 2 upvotes

> looks nice, clamp looks like big time saver

## Similar posts on daily.dev

- [PHP in 2026](https://daily.dev/posts/php-in-2026-lsdo240ed) · stitcher.io · 123 upvotes · 3 comments

---

Tags: [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/what-s-new-in-php-8-6-cwghaztnl)

```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":"TechArticle","headline":"What's New in PHP 8.6","url":"https://daily.dev/posts/what-s-new-in-php-8-6-cwghaztnl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-s-new-in-php-8-6-cwghaztnl"},"datePublished":"2026-09-15T13:50:29.759Z","dateModified":"2026-09-15T13:50:52.098Z","description":"PHP 8.6 ships November 19, 2026, with a feature freeze already set for September 22 and RC1 two days later. Highlights include partial function application (a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/86d8523d534ca167dff3e4b4cc5b20e8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/86d8523d534ca167dff3e4b4cc5b20e8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Laravel News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Laravel News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ln","url":"https://daily.dev/sources/ln"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/what-s-new-in-php-8-6-cwghaztnl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":55},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"php,laravel","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Laravel News","item":"https://daily.dev/sources/ln"},{"@type":"ListItem","position":3,"name":"What's New in PHP 8.6"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/what-s-new-in-php-8-6-cwghaztnl","comment":[{"@type":"Comment","text":"Please do not use gradients alongside with PHP. It looks modern.","datePublished":"2026-09-16T10:19:11.370Z","url":"https://daily.dev/posts/CwgHazTNl#c-vVRjeOuHt","author":{"@type":"Person","name":"Djordje Djordjevic","url":"https://daily.dev/superstarr","image":"https://lh3.googleusercontent.com/a/AEdFTp7HNM6POHEN1pzW-bhOiQbvkikR0NO7N4NKsFKG=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7}},{"@type":"Comment","text":"Partial application and stricter sessions? PHP is quietly becoming the adult in the room.","datePublished":"2026-09-17T09:13:24.687Z","url":"https://daily.dev/posts/CwgHazTNl#c-MY2jxvdaf","author":{"@type":"Person","name":"Risto Tõldsep","url":"https://daily.dev/ristotoldsep","image":"https://lh3.googleusercontent.com/a/ACg8ocLDWc6mZn0JwNmXXw6WY0L_HJ6pegzRttooC5VgtXESHSj3MNYx=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"looks nice, clamp looks like big time saver","datePublished":"2026-09-16T12:34:58.054Z","url":"https://daily.dev/posts/CwgHazTNl#c-pnPJxy8hO","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":2}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/what-s-new-in-php-8-6-cwghaztnl#faq","mainEntity":[{"@type":"Question","name":"When is PHP 8.6 officially released?","acceptedAnswer":{"@type":"Answer","text":"PHP 8.6 reaches general availability on November 19, 2026. The release timeline includes a feature freeze on September 22, 2026, RC1 two days later on September 24, and RC4 on November 5, 2026, with release managers Daniel Scherzer, Matteo Beccati, and Joe Ferguson overseeing the cycle. Developers planning PHP upgrades can follow release timelines like this one on daily.dev."}},{"@type":"Question","name":"How does the new clamp() function work in PHP 8.6?","acceptedAnswer":{"@type":"Answer","text":"clamp() returns a value if it falls within given bounds, or the nearest bound otherwise, for example clamp(101, min: 0, max: 100) returns 100. It works with any comparable type including strings and DateTime objects, throws a ValueError if min exceeds max, and replaces the error-prone min(max($value, $min), $max) pattern. Track new standard-library functions like this on daily.dev before refactoring bounds-checking code."}},{"@type":"Question","name":"What changes with readonly properties in PHP 8.6?","acceptedAnswer":{"@type":"Answer","text":"Readonly properties can now have a default value, which was a compile-time error before PHP 8.6. This makes it easier to satisfy get-only interface properties introduced in PHP 8.4 with a fixed value, though readonly semantics are otherwise unchanged and the property still cannot be reassigned after initialization. daily.dev helps developers stay ahead of language-level changes like readonly property rules."}}]}
```

