3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function($f) { return [1,2,3,$f]; }; function foo($a, $b, $c, $d) { print_r(func_get_args()); } foo(...$f('4'));

preferences:
52.59 ms | 402 KiB | 5 Q