3v4l.org

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

preferences:
175.61 ms | 1395 KiB | 56 Q