3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i < 10; $i++) echo $i % 4 . ""\n";
Output for 5.6.0 - 5.6.23, 7.0.0 - 7.0.8
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR), expecting ',' or ';' in /in/sTlQI on line 4
Process exited with code 255.

preferences:
176.45 ms | 940 KiB | 41 Q