3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
based on iSGHn
Output for 5.3.19 - 7.2.0
string(19) "123, 123, 324, 6345"