3v4l.org

run code in 300+ PHP versions simultaneously
<?php function o($f, $g) { return function (...$x) { return $f(...$g(...$x)); }; } $f = function ($a, $b) { return [$a + $b, $a * $b]; }; $g = function (...$n) { return array_map(); };

preferences:
37.13 ms | 405 KiB | 6 Q