3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = array (1, 2, 3, 4); $v = 0; $b = count($i)-1; for ($v; $v<=$b; $v++) { echo $i[$v] $b; } ?>
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '$b' (T_VARIABLE), expecting ',' or ';' in /in/j547s on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /in/j547s on line 6
Process exited with code 255.