<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/php-8-5-released-key-features-and-enhancements-5nvnnpycd" -->

---
title: PHP 8.5 Released: Key Features and Enhancements | daily.dev
description: PHP 8.5 introduces a pipe operator for cleaner function chaining, modern URI parsing compliant with RFC 3986 and WHATWG standards, and Clone With functionality...
canonical: https://daily.dev/posts/php-8-5-released-key-features-and-enhancements-5nvnnpycd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: PHP 8.5 Released: Key Features and Enhancements | daily.dev
og:description: PHP 8.5 introduces a pipe operator for cleaner function chaining, modern URI parsing compliant with RFC 3986 and WHATWG standards, and Clone With functionality...
og:url: https://daily.dev/posts/php-8-5-released-key-features-and-enhancements-5nvnnpycd
og:image: https://api.daily.dev/og/posts/5nVNNpYcD.png
og:image:alt: PHP 8.5 Released: Key Features and Enhancements
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.

# PHP 8.5 Released: Key Features and Enhancements

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 4 upvotes · 0 comments

## Summary

PHP 8.5 introduces a pipe operator for cleaner function chaining, modern URI parsing compliant with RFC 3986 and WHATWG standards, and Clone With functionality for efficient object property updates. The release adds the #[NoDiscard] attribute to catch unused return values, persistent cURL handles for better performance, and new array utility functions array_first() and array_last(). Additional improvements include asymmetric visibility for static properties, attributes on constants, backtraces in fatal errors, and several deprecations moving toward standardization.

## Content

PHP 8.5, released on November 20, 2025, brings a host of new features and improvements aimed at enhancing the language's capabilities and user experience. A key addition in this release is the pipe operator, which facilitates cleaner function chaining by eliminating the need for nested statements and temporary variables. This operator is geared towards users favoring functional programming paradigms, providing a more streamlined approach to function execution.

Another significant enhancement is the introduction of a modern URI extension. This extension supports RFC 3986 and WHATWG URL parsing, addressing the limitations of the legacy `parse_url()` function with a more standards-compliant and secure parsing approach.

Additionally, PHP 8.5 debuts the 'Clone With' functionality, allowing developers to efficiently update properties of cloned objects, thereby enhancing object manipulation capabilities. The release includes the `#[NoDiscard]` attribute, which aims to alert developers of unused return values to prevent unintended outcomes.

Performance improvements are also a focus, with persistent cURL handles now available for multi-request sharing, optimizing resource utilization. New array utility functions, `array_first()` and `array_last()`, have been introduced, simplifying operations on arrays. Support for closures in constant expressions further enhances the flexibility of defining constants within the code.

PHP 8.5 also introduces several visibility and attribute enhancements, including asymmetric visibility for static properties and final properties enabled via constructor promotion. Developers can now place attributes on constants, offering more robust metadata handling. Backtraces have been added to fatal errors, aiding in debugging efforts.

Notably, the release includes several deprecations, including non-standard cast names, the backtick operator for `shell_exec()`, and constant redeclaration, marking a move towards a more standardized and future-proof language structure.

## Similar posts on daily.dev

- [PHP in 2026](https://daily.dev/posts/php-in-2026-lsdo240ed) · stitcher.io · 123 upvotes · 3 comments
- [What's New in PHP 8.6](https://daily.dev/posts/what-s-new-in-php-8-6-cwghaztnl) · Laravel News · 55 upvotes · 4 comments
- [Seven Real-World Examples of Using the Pipe Operator in PHP 8.5](https://daily.dev/posts/seven-real-world-examples-of-using-the-pipe-operator-in-php-8-5-ss648vk9d) · FREEK.DEV · 0 upvotes · 0 comments
- [PHP 8.5 Introduces a New URI Extension](https://daily.dev/posts/php-8-5-introduces-a-new-uri-extension-nkrks8bt5) · Laravel News · 54 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/php-8-5-released-key-features-and-enhancements-5nvnnpycd)

```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":"PHP 8.5 Released: Key Features and Enhancements","url":"https://daily.dev/posts/php-8-5-released-key-features-and-enhancements-5nvnnpycd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/php-8-5-released-key-features-and-enhancements-5nvnnpycd"},"datePublished":"2025-11-20T19:26:15.643Z","dateModified":"2025-12-08T02:18:51.494Z","description":"PHP 8.5 introduces a pipe operator for cleaner function chaining, modern URI parsing compliant with RFC 3986 and WHATWG standards, and Clone With functionality...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ec78860c8747688b84d74a291b3e213e?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ec78860c8747688b84d74a291b3e213e?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Collections","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":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/php-8-5-released-key-features-and-enhancements-5nvnnpycd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"functional-programming,performance,php","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"PHP 8.5 Released: Key Features and Enhancements"}]}
```

