3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x($id) { $a = func_get_args(); var_dump(join(', ', array_flatten($a))); } function array_flatten($ary) { // http://stackoverflow.com/a/1320259 if (!$ary) return $ary; $_ary = array(); $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($ary)); foreach ($it as $val) $_ary[] = $val; return $_ary; } x(123,123,324,6345);

preferences:
44.65 ms | 402 KiB | 5 Q