3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = ['a','b','c']; function foobar(){ return next($arr); } $i = 0; while(true) : foobar() $i += 1; endwhile;
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected '$i' (T_VARIABLE) in /in/do7jO on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/do7jO on line 3
Process exited with code 255.