3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $max = 100000; function xrange($len) { $i = 0; while ($i < $len) {        yield $i;        $i++;    }    return; } $a = $b = $c = 0; foreach (xrange($max) as $i) { $a = $a + $b + $i; $b = $a * 5678 * $i; $c = $i * $i; }
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected ' ' (T_STRING) in /in/HFERs on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/HFERs on line 6
Process exited with code 255.