3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(1,2); $b = array(11,12); foreach( $a as &$r) { } foreach( $b as $r) { } each $a[1]; ?>
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '$a' (T_VARIABLE) in /in/B9PoX on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE in /in/B9PoX on line 13
Process exited with code 255.