- Output for 5.4.0 - 5.4.24
- Parse error: syntax error, unexpected '.' in /in/sibj9 on line 7
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected '[' in /in/sibj9 on line 6
Process exited with code 255.
<?php
function add($a, $b, $c, $f) {
return $a + $b + $c + $f;
}
$operators = [2, 3, -2];
echo add(1, ..$operators);
?>