{"id":203,"date":"2026-11-24T08:00:00","date_gmt":"2026-11-24T07:00:00","guid":{"rendered":"https:\/\/hoja.in\/blog\/?p=203"},"modified":"2026-11-18T12:59:29","modified_gmt":"2026-11-18T11:59:29","slug":"php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing","status":"publish","type":"post","link":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/","title":{"rendered":"PHP 8.5 features I tried: pipes, clone with and real URI parsing"},"content":{"rendered":"<p>Hi folks,<\/p>\n<p>PHP 8.5 came out on 20 November 2025, so it has just turned one year old. I am a bit ashamed to say I had read the release page back then and then&#8230; did nothing with it. My projects ran on 8.3 and 8.4, the TYPO3 sites were busy with v14 upgrades, and new syntax was simply not on the list.<\/p>\n<p>This week I finally sat down and tried the features I was most curious about. Not in a project, just a single PHP file in a container, so nothing on my machine had to change. Here&#8217;s what I found.<\/p>\n<h2>How I tested<\/h2>\n<p>DDEV for this project still runs PHP 8.4, and I didn&#8217;t want to switch the whole project for a quick test. The official Docker image is enough:<\/p>\n<pre><code class=\"language-bash\">docker run --rm -v \"$PWD\":\/app -w \/app php:8.5-cli php demo85.php<\/code><\/pre>\n<p>All the outputs below are from that run. When you want the real thing in a project, check first that your TYPO3 or WordPress version supports 8.5, and that all your Composer packages do too. <code>composer why-not php 8.5<\/code> is a nice quick check.<\/p>\n<h2>The pipe operator<\/h2>\n<p>This is the one everybody talks about. Let&#8217;s say you make a slug from a title. Before, you wrote it inside out:<\/p>\n<pre><code class=\"language-php\">$slug = trim(preg_replace('\/[^a-z0-9]+\/', '-', strtolower(trim($title))), '-');<\/code><\/pre>\n<p>You read it from the middle to the outside, which my brain always does like a snail. With <code>|&gt;<\/code> the value flows from top to bottom:<\/p>\n<pre><code class=\"language-php\">$title = '  Fluid 5 in TYPO3 v14: what changed?  ';\n\n$slug = $title\n    |&gt; trim(...)\n    |&gt; strtolower(...)\n    |&gt; (fn(string $s): string =&gt; preg_replace('\/[^a-z0-9]+\/', '-', $s))\n    |&gt; (fn(string $s): string =&gt; trim($s, '-'));\n\nvar_dump($slug); \/\/ string(33) \"fluid-5-in-typo3-v14-what-changed\"<\/code><\/pre>\n<p>Each step takes exactly one argument, the result of the step before. That&#8217;s why <code>trim(...)<\/code> and <code>strtolower(...)<\/code> work directly as first-class callables, but <code>preg_replace<\/code> needs a small arrow function, because the value has to go into its third argument. Also note the brackets around the arrow functions. Without them, the parser gets confused.<\/p>\n<p>Honestly, I like it for exactly this kind of string and array cleanup. I&#8217;m not going to rewrite whole service methods into pipes, though. When a step needs two or three extra arguments, a plain variable per step is still easier to read and to debug.<\/p>\n<h2>Clone with<\/h2>\n<p>This one makes me happy because readonly value objects were a bit painful. In 8.3 and 8.4, a <code>withSomething()<\/code> method on a readonly class needed either a full <code>new self(...)<\/code> with every property, or a <code>__clone()<\/code> trick. Now <code>clone<\/code> takes an array of properties to change:<\/p>\n<pre><code class=\"language-php\">final readonly class Money\n{\n    public function __construct(\n        public int $cents,\n        public string $currency,\n    ) {}\n\n    public function withCents(int $cents): self\n    {\n        return clone($this, ['cents' =&gt; $cents]);\n    }\n}\n\n$price = new Money(1999, 'EUR');\n$newPrice = $price-&gt;withCents(2499); \/\/ currency stays 'EUR'<\/code><\/pre>\n<p>It works from inside the class scope, where the readonly property may be set. I think this will clean up a lot of DTOs and settings objects in extensions. Less code, and you can&#8217;t forget a property when the class grows.<\/p>\n<h2>#[NoDiscard]<\/h2>\n<p>Have you ever called a method on an immutable object and forgot to use the result? I have, more than once, with PSR-7 requests. <code>$request-&gt;withAttribute(...)<\/code> on its own line does nothing. PHP 8.5 lets you mark a function so that ignoring its return value gives a warning:<\/p>\n<pre><code class=\"language-php\">#[NoDiscard('the new state is in the return value')]\nfunction addTag(array $tags, string $tag): array\n{\n    return [...$tags, $tag];\n}\n\n$tags = ['PHP 8'];\naddTag($tags, 'TYPO3');\n\/\/ Warning: The return value of function addTag() should either be used\n\/\/ or intentionally ignored by casting it as (void), the new state is in the return value\n\n(void) addTag($tags, 'ignored on purpose'); \/\/ no warning<\/code><\/pre>\n<p>The <code>(void)<\/code> cast is how you say &#8220;yes, I really mean to ignore it&#8221;. I can see this on all the <code>with*()<\/code> methods of value objects. The warning appears at runtime, so you only see it when that line actually runs. Static analysis tools will pick it up sooner, once they support it.<\/p>\n<h2>array_first() and array_last()<\/h2>\n<p>Small, but so welcome. No more <code>reset()<\/code> and <code>end()<\/code> with their side effects on the internal pointer, and no <code>$array[array_key_first($array)]<\/code> gymnastics:<\/p>\n<pre><code class=\"language-php\">$events = ['2026-11-12' =&gt; 'outage', '2026-11-14' =&gt; 'restored'];\n\narray_first($events); \/\/ 'outage'\narray_last($events);  \/\/ 'restored'\narray_first([]);      \/\/ null<\/code><\/pre>\n<p>Keys don&#8217;t matter, it gives you the value. For an empty array you get <code>null<\/code>, so if <code>null<\/code> can also be a real value in your array, you still need to check <code>count()<\/code> first.<\/p>\n<h2>The URI extension<\/h2>\n<p>This is the feature I think is most underrated. <code>parse_url()<\/code> has always been a bit wild. It follows no standard exactly, and with strange input it gives strange results, which is not great when the URL comes from a user. PHP 8.5 ships an always-enabled <code>uri<\/code> extension with two classes: one for RFC 3986 and one for the WHATWG URL standard that browsers use.<\/p>\n<pre><code class=\"language-php\">use UriRfc3986Uri;\nuse UriWhatWgUrl;\n\n$uri = new Uri('https:\/\/hoja.in\/blog\/?p=1#top');\n$uri-&gt;getHost();                         \/\/ 'hoja.in'\n$uri-&gt;getQuery();                        \/\/ 'p=1'\n$uri-&gt;withPath('\/blog\/feed\/')-&gt;toString(); \/\/ 'https:\/\/hoja.in\/blog\/feed\/?p=1#top'\n\nUri::parse('http:\/\/exa mple.com');       \/\/ null instead of an exception\n\n$url = Url::parse('https:\/\/b\u00c3\u00bccher.example\/stra\u00c3\u0178e');\n$url-&gt;getAsciiHost();   \/\/ 'xn--bcher-kva.example'\n$url-&gt;getUnicodeHost(); \/\/ 'b\u00c3\u00bccher.example'\n$url-&gt;toAsciiString();  \/\/ 'https:\/\/xn--bcher-kva.example\/stra%C3%9Fe'<\/code><\/pre>\n<p>Two things I noticed. The objects are immutable, with <code>with*()<\/code> methods like PSR-7. And <code>parse()<\/code> returns <code>null<\/code> on invalid input, while the constructor throws an exception, so you can pick whichever fits. The WHATWG class also handles internationalised domain names, which <code>parse_url()<\/code> never did.<\/p>\n<p>Which one to use? My rule for now: if you validate or rewrite URLs that a browser will open, like redirects or links from editors, use <code>UriWhatWgUrl<\/code>, because it parses the way the browser does. For other protocols and identifiers, use the RFC 3986 class.<\/p>\n<h2>Smaller things worth knowing<\/h2>\n<ul>\n<li>Fatal errors, for example from <code>max_execution_time<\/code>, now come with a backtrace. That alone can save an hour of guessing.<\/li>\n<li>Closures and first-class callables are allowed in constant expressions, so also in attribute arguments and default values.<\/li>\n<li><code>#[Override]<\/code> now works on properties too.<\/li>\n<li><code>setcookie()<\/code> and the session functions support partitioned cookies.<\/li>\n<\/ul>\n<h2>Will I upgrade?<\/h2>\n<p>Yes, but step by step. First the dev environment and CI, then one smaller site, then the rest. And I&#8217;ll wait to use the pipe operator and <code>clone<\/code> with arguments in shared extensions until every project that uses them runs on 8.5, because both are syntax errors on older PHP.<\/p>\n<p>Which of these do you already use? Feedbacks are the champion&#8217;s breakfast, drop a comment.<\/p>\n<h2>Further reading<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.php.net\/releases\/8.5\/en.php\">PHP 8.5 release announcement<\/a><\/li>\n<li><a href=\"https:\/\/www.php.net\/manual\/en\/migration85.php\">Migrating from PHP 8.4 to 8.5<\/a> (PHP manual)<\/li>\n<li><a href=\"https:\/\/wiki.php.net\/rfc\/pipe-operator-v3\">RFC: Pipe operator v3<\/a><\/li>\n<li><a href=\"https:\/\/wiki.php.net\/rfc\/url_parsing_api\">RFC: Add RFC 3986 and WHATWG compliant URI parsing API<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>PHP 8.5 is one year old. I finally ran the pipe operator, clone with, #[NoDiscard], array_first() and the new URI extension in a container, and here is what I&#8217;d use.<\/p>\n","protected":false},"author":1,"featured_media":204,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[26,30,32,31],"class_list":["post-203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-composer","tag-extension-development","tag-php-8","tag-testing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP 8.5 features: pipe operator, clone with, URI<\/title>\n<meta name=\"description\" content=\"PHP 8.5 in practice: the pipe operator, clone with for readonly classes, #[NoDiscard], array_first\/array_last and the new URI extension, with tested code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP 8.5 features: pipe operator, clone with, URI\" \/>\n<meta property=\"og:description\" content=\"PHP 8.5 in practice: the pipe operator, clone with for readonly classes, #[NoDiscard], array_first\/array_last and the new URI extension, with tested code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/\" \/>\n<meta property=\"og:site_name\" content=\"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hojaonline7\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-24T07:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Hoja Mustaffa Abdul Latheef\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hojaonline\" \/>\n<meta name=\"twitter:site\" content=\"@hojaonline\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hoja Mustaffa Abdul Latheef\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/\"},\"author\":{\"name\":\"Hoja Mustaffa Abdul Latheef\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\"},\"headline\":\"PHP 8.5 features I tried: pipes, clone with and real URI parsing\",\"datePublished\":\"2026-11-24T07:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/\"},\"wordCount\":851,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing-1.jpg\",\"keywords\":[\"Composer\",\"Extension development\",\"PHP 8\",\"Testing\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/\",\"name\":\"PHP 8.5 features: pipe operator, clone with, URI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing-1.jpg\",\"datePublished\":\"2026-11-24T07:00:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\"},\"description\":\"PHP 8.5 in practice: the pipe operator, clone with for readonly classes, #[NoDiscard], array_first\\\/array_last and the new URI extension, with tested code.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/#primaryimage\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing-1.jpg\",\"contentUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing-1.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Pipes, clones and URIs\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hoja.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP 8.5 features I tried: pipes, clone with and real URI parsing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/\",\"name\":\"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog\",\"description\":\"Notes from daily work with TYPO3, PHP and AI-assisted engineering\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hoja.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\",\"name\":\"Hoja Mustaffa Abdul Latheef\",\"description\":\"Senior TYPO3 Developer at jweiland.net, TYPO3 CMS Certified Developer. I write about TYPO3 upgrades, extension development, PHP and AI-assisted engineering with Claude Code.\",\"sameAs\":[\"https:\\\/\\\/hoja.in\\\/\"],\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/author\\\/hoja\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP 8.5 features: pipe operator, clone with, URI","description":"PHP 8.5 in practice: the pipe operator, clone with for readonly classes, #[NoDiscard], array_first\/array_last and the new URI extension, with tested code.","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:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/","og_locale":"en_US","og_type":"article","og_title":"PHP 8.5 features: pipe operator, clone with, URI","og_description":"PHP 8.5 in practice: the pipe operator, clone with for readonly classes, #[NoDiscard], array_first\/array_last and the new URI extension, with tested code.","og_url":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/","og_site_name":"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog","article_publisher":"https:\/\/www.facebook.com\/hojaonline7","article_published_time":"2026-11-24T07:00:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing-1.jpg","type":"image\/jpeg"}],"author":"Hoja Mustaffa Abdul Latheef","twitter_card":"summary_large_image","twitter_creator":"@hojaonline","twitter_site":"@hojaonline","twitter_misc":{"Written by":"Hoja Mustaffa Abdul Latheef","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/#article","isPartOf":{"@id":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/"},"author":{"name":"Hoja Mustaffa Abdul Latheef","@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b"},"headline":"PHP 8.5 features I tried: pipes, clone with and real URI parsing","datePublished":"2026-11-24T07:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/"},"wordCount":851,"commentCount":0,"image":{"@id":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/#primaryimage"},"thumbnailUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing-1.jpg","keywords":["Composer","Extension development","PHP 8","Testing"],"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/","url":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/","name":"PHP 8.5 features: pipe operator, clone with, URI","isPartOf":{"@id":"https:\/\/hoja.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/#primaryimage"},"image":{"@id":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/#primaryimage"},"thumbnailUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing-1.jpg","datePublished":"2026-11-24T07:00:00+00:00","author":{"@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b"},"description":"PHP 8.5 in practice: the pipe operator, clone with for readonly classes, #[NoDiscard], array_first\/array_last and the new URI extension, with tested code.","breadcrumb":{"@id":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/#primaryimage","url":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing-1.jpg","contentUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/11\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing-1.jpg","width":1200,"height":630,"caption":"Pipes, clones and URIs"},{"@type":"BreadcrumbList","@id":"https:\/\/hoja.in\/blog\/php-8-5-features-i-tried-pipes-clone-with-and-uri-parsing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hoja.in\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP 8.5 features I tried: pipes, clone with and real URI parsing"}]},{"@type":"WebSite","@id":"https:\/\/hoja.in\/blog\/#website","url":"https:\/\/hoja.in\/blog\/","name":"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog","description":"Notes from daily work with TYPO3, PHP and AI-assisted engineering","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hoja.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b","name":"Hoja Mustaffa Abdul Latheef","description":"Senior TYPO3 Developer at jweiland.net, TYPO3 CMS Certified Developer. I write about TYPO3 upgrades, extension development, PHP and AI-assisted engineering with Claude Code.","sameAs":["https:\/\/hoja.in\/"],"url":"https:\/\/hoja.in\/blog\/author\/hoja\/"}]}},"_links":{"self":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":1,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":250,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/203\/revisions\/250"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/media\/204"}],"wp:attachment":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}