{"id":3321,"date":"2025-11-21T00:00:54","date_gmt":"2025-11-21T00:00:54","guid":{"rendered":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/"},"modified":"2025-11-21T00:00:54","modified_gmt":"2025-11-21T00:00:54","slug":"php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality","status":"publish","type":"post","link":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/","title":{"rendered":"PHP 8.5 Rolls Out with Exciting Features: Pipe Operator, URI Extension, and Enhanced Clone Functionality"},"content":{"rendered":"<p>PHP 8.5 has been officially released, introducing several significant enhancements geared towards improving web development with this popular open-source scripting language.<\/p>\n<p>One of the major highlights of PHP 8.5 is the inclusion of a built-in URI extension, allowing developers to parse, normalize, and manage URLs in compliance with RFC 3986 and WHATWG URL standards. Another notable feature is the new Pipe <code>|&gt;<\/code> operator, which facilitates the chaining of callables from left to right, enabling smoother value passing through multiple functions without the need for intermediary variables.<\/p>\n<p>Additionally, PHP 8.5 introduces a new <code>clone()<\/code> syntax. This feature streamlines the process of cloning objects and modifying properties, particularly benefiting <code>readonly<\/code> classes. The <code>#[NoDiscard]<\/code> attribute has also been added, which issues a warning if a return value is not utilized, aiding in the prevention of common mistakes and enhancing API safety.<\/p>\n<p>The update further includes a new <code>curl_multi_get_handles<\/code> function that supports persistent cURL share handles across multiple PHP requests, helping to eliminate the overhead associated with repeatedly initializing connections to the same hosts. It also introduces support for static closures and first-class callables in constant expressions, such as in attribute parameters.<\/p>\n<p>Other notable changes in PHP 8.5 comprise stack trace support for PHP Fatal errors, a new <code>max_memory_limit<\/code> INI directive to set a ceiling on memory usage, and a new <code>PHP_BUILD_DATE<\/code> constant. The addition of an <code>IntlListFormatter<\/code> class and new functions like <code>get_exception_handler<\/code> and <code>get_error_handler<\/code> also contribute to a more robust development experience.<\/p>\n<p>The new version adds utility functions such as <code>array_first<\/code> and <code>array_last<\/code> to retrieve the first or last value of an array, alongside a function for checking if a locale is right-to-left. A new command, <code>php --ini=diff<\/code>, has also been added to show non-default INI directives.<\/p>\n<p>Developers can download PHP 8.5 from the <a target=\"_blank\" rel=\"nofollow\" href=\"https:\/\/www.php.net\/downloads.php\">official website<\/a> as a source tarball, and it will soon be available in the stable repositories of various popular <a target=\"_blank\" rel=\"nofollow\" href=\"https:\/\/9to5linux.com\/category\/news\/distro\">GNU\/Linux distributions<\/a>. Detailed changes can be reviewed in the <a target=\"_blank\" rel=\"nofollow\" href=\"https:\/\/www.php.net\/releases\/8.5\/en.php\">release notes<\/a> for this major update.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP 8.5 has been officially released, introducing several significant enhancements geared towards improving web development with this popular open-source scripting language. One of the major highlights of PHP 8.5 is the inclusion of a built-in URI extension, allowing developers to parse, normalize, and manage URLs in compliance with RFC 3986 and WHATWG URL standards. Another [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":3322,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45,4,1276,1277,1278],"tags":[],"class_list":["post-3321","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apps","category-news","category-php","category-php-8-5","category-programming-language"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP 8.5 Rolls Out with Exciting Features: Pipe Operator, URI Extension, and Enhanced Clone Functionality - ServerHost Hosting Solutions Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP 8.5 Rolls Out with Exciting Features: Pipe Operator, URI Extension, and Enhanced Clone Functionality - ServerHost Hosting Solutions Blog\" \/>\n<meta property=\"og:description\" content=\"PHP 8.5 has been officially released, introducing several significant enhancements geared towards improving web development with this popular open-source scripting language. One of the major highlights of PHP 8.5 is the inclusion of a built-in URI extension, allowing developers to parse, normalize, and manage URLs in compliance with RFC 3986 and WHATWG URL standards. Another [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/\" \/>\n<meta property=\"og:site_name\" content=\"ServerHost Hosting Solutions Blog\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-21T00:00:54+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/\",\"url\":\"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/\",\"name\":\"PHP 8.5 Rolls Out with Exciting Features: Pipe Operator, URI Extension, and Enhanced Clone Functionality - ServerHost Hosting Solutions Blog\",\"isPartOf\":{\"@id\":\"https:\/\/serverhost.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2025\/11\/62062084-08de-4a09-8f1f-a62cb430eb4c.webp\",\"datePublished\":\"2025-11-21T00:00:54+00:00\",\"author\":{\"@id\":\"\"},\"breadcrumb\":{\"@id\":\"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/#primaryimage\",\"url\":\"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2025\/11\/62062084-08de-4a09-8f1f-a62cb430eb4c.webp\",\"contentUrl\":\"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2025\/11\/62062084-08de-4a09-8f1f-a62cb430eb4c.webp\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/serverhost.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP 8.5 Rolls Out with Exciting Features: Pipe Operator, URI Extension, and Enhanced Clone Functionality\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/serverhost.com\/blog\/#website\",\"url\":\"https:\/\/serverhost.com\/blog\/\",\"name\":\"ServerHost Hosting Solutions Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/serverhost.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP 8.5 Rolls Out with Exciting Features: Pipe Operator, URI Extension, and Enhanced Clone Functionality - ServerHost Hosting Solutions Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/","og_locale":"en_US","og_type":"article","og_title":"PHP 8.5 Rolls Out with Exciting Features: Pipe Operator, URI Extension, and Enhanced Clone Functionality - ServerHost Hosting Solutions Blog","og_description":"PHP 8.5 has been officially released, introducing several significant enhancements geared towards improving web development with this popular open-source scripting language. One of the major highlights of PHP 8.5 is the inclusion of a built-in URI extension, allowing developers to parse, normalize, and manage URLs in compliance with RFC 3986 and WHATWG URL standards. Another [&hellip;]","og_url":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/","og_site_name":"ServerHost Hosting Solutions Blog","article_published_time":"2025-11-21T00:00:54+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/","url":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/","name":"PHP 8.5 Rolls Out with Exciting Features: Pipe Operator, URI Extension, and Enhanced Clone Functionality - ServerHost Hosting Solutions Blog","isPartOf":{"@id":"https:\/\/serverhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/#primaryimage"},"image":{"@id":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/#primaryimage"},"thumbnailUrl":"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2025\/11\/62062084-08de-4a09-8f1f-a62cb430eb4c.webp","datePublished":"2025-11-21T00:00:54+00:00","author":{"@id":""},"breadcrumb":{"@id":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/#primaryimage","url":"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2025\/11\/62062084-08de-4a09-8f1f-a62cb430eb4c.webp","contentUrl":"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2025\/11\/62062084-08de-4a09-8f1f-a62cb430eb4c.webp","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/serverhost.com\/blog\/php-8-5-rolls-out-with-exciting-features-pipe-operator-uri-extension-and-enhanced-clone-functionality\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/serverhost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP 8.5 Rolls Out with Exciting Features: Pipe Operator, URI Extension, and Enhanced Clone Functionality"}]},{"@type":"WebSite","@id":"https:\/\/serverhost.com\/blog\/#website","url":"https:\/\/serverhost.com\/blog\/","name":"ServerHost Hosting Solutions Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/serverhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/posts\/3321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3321"}],"version-history":[{"count":0,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/posts\/3321\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/media\/3322"}],"wp:attachment":[{"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}