array_merge() vs array unpacking performance

From: Date: Mon, 01 Aug 2022 17:00:57 +0000
Subject: array_merge() vs array unpacking performance
Groups: php.internals 
Request: Send a blank email to internals+get-118337@lists.php.net to get a copy of this message
Hello! PHP 8.1 supports array unpacking with keys. I guess that is very similar to array_merge(), but for some reason array_merge() is 50% slower than unpacking. So my question is: is there some way to optimize the engine so array_merge() can work like unpacking? Thanks!

« previous php.internals (#118337) next »