Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130378 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id C29021A00BC for ; Mon, 16 Mar 2026 22:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1773698856; bh=tPJte9RfyFk66AjMZ0fBsXUVZtVcyHL89STdpsnC/II=; h=Date:From:To:In-Reply-To:References:Subject:From; b=iNq8OT0K3LdPzg9WzMG7JollBIMNI8W586+Kcvcn6+3pDAtrIbkhXO+jfwo8JkkVV VTEVdY3gQyXDZtc6UWEDlNk0unD3Q1orBvRN17bY2Uz19ENUb32lpqpo+QFR5qB7G1 l6GlN9W+Tl+inFPFawyj7Dka6z7W9QFhu4p3bppFQPKMyiZctuSVXvThKCKgIu6ukx 5laHKnaYTLnaoY80h25n2ih5eEz0pWxN/P1jb1t1tVTYeWIYy3Fwr3t1SJtANGjRgm 5NGRC16L03Cm437e9pBfQr9y8zWMPASsso4MhCm+eyWUWmvinMBFdMRiNOd9gsFOBS EzovaTbsKyi9g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6ADCD180048 for ; Mon, 16 Mar 2026 22:07:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-b4-smtp.messagingengine.com (fhigh-b4-smtp.messagingengine.com [202.12.124.155]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 16 Mar 2026 22:07:35 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 934A47A02F0 for ; Mon, 16 Mar 2026 18:07:29 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Mon, 16 Mar 2026 18:07:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm1; t=1773698849; x=1773785249; bh=4MAKOs3Qh3tNnnoR7GMVp Mg1/yt4vTfMFZ0hoZWn2A4=; b=oSPYcNxPbJ/+U0qIUfwpIMmfEdrdJ5UPJfMVu oUbVx2xEQl58TE4Ssuc2IX2Bi2sql3fox3UHU5i+58nNQpyqeLiYETOveG+PRozT l9rbNTZJLzBEcGjn4yUjb+2HM4RPnqt4sBBRVAcjvMebyNKC6f0BDwDVDlU+rWDu mk15o8plb+b/Yh+KQyHdYpb0HB0hwa0srrRwzf8nVfkKoIKzKuMhb3MAdWpZxDbG Dazc1g8Mb76OUITNGoe7SkGWYxldGSUr5h/OfaLxMqXXuITcqi4U9NvIHjIIxY72 iE7+IVh9I3x/CDgiHI7nmvayTTcsmwSzZOAao4N+HcWZfKsig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1773698849; x=1773785249; bh=4 MAKOs3Qh3tNnnoR7GMVpMg1/yt4vTfMFZ0hoZWn2A4=; b=q6+zfVM3a5KwH3+rA qegnsgWg8LFCxsK8qqMf5cVCr85z17yrNX2ipeQTRAAuVG4rYTVUVlY22M9yzdpb sYNjoqBlC4fqVjuXzuM6/KhmDcLC9oCorC9TNSNIQ2UJKmncZYH7xcEGiSeOaenQ u18LRbJJG13FZ56Zm7yV06ofZ9laFJgDJT0kFv7fPrk5x9ZkDlxXZ9T4++5qyXaf 9kbBP0nEgkU6LgN4GM7ox9RBoH0sTlZCxliGUX+5ZEOhPJ3AkgBRkhPDbZXn+9u6 k//DzSqLe2NEQDbzdb72NxleqfrAbHw8vbjk9NzGybRwNvps8n6wpzvKagmpzpyY V0mjA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvleelheegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvffkjghfufgtgfesthhqredtredtjeenucfhrhhomhepfdfnrghrrhih ucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqe enucggtffrrghtthgvrhhnpeehjeefvefgfeduteffffdvheeiudekieefleevvdduiefg keehvdevheffvdegteenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhf ihgvlhguthgvtghhrdgtohhmpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpoh huthdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id EE1B170006B; Mon, 16 Mar 2026 18:07:28 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: AfUH5ZbnOtNR Date: Mon, 16 Mar 2026 17:07:08 -0500 To: "php internals" Message-ID: <10e9429a-1026-42d3-875b-c0af9d9d637a@app.fastmail.com> In-Reply-To: References: <995ce501-9106-4485-92b0-7bca3002a565@varteg.nz> Subject: Re: [PHP-DEV] Array arguments for str functions Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Mon, Mar 16, 2026, at 9:30 AM, Tim D=C3=BCsterhus wrote: > I have also added an optimization to PHP 8.6 that compiles `array_map(= )`=20 > into a foreach loop when the callback is first class callable or PFA:=20 > https://github.com/php/php-src/pull/20934. I plan to extend this to th= e=20 > other array_* functions once the PFA PR is merged. > > Best regards > Tim D=C3=BCsterhus !!! I didn't realize you'd done so. That's awesome, and needs more publ= icity. :-) With all the compile optimizations around pipes, PFA, etc., I wonder if = there's a way to make it more generic? Like, can tools be built for pip= es and PFA that can get down-compiled, without having to special case ev= erything in the engine? --Larry Garfield