3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function restructureArray3($array, $x) { while ($x) $return [] = implode(', ', array_splice($array, 0, ceil(sizeof($array) / $x--))); return $return; } $array = range(1, 7); $x = 3; var_dump(restructureArray3($array, $x)));
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected ')' in /in/eUuID on line 15
Process exited with code 255.