3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $max = 100000; function xrange($len) {    $i = 0;    while ($i < $len; $i++) {        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.5.9
Parse error: syntax error, unexpected ' ' (T_STRING) in /in/UZpVO on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/UZpVO on line 4
Process exited with code 255.