3v4l.org

run code in 200+ PHP versions simultaneously
<?php $limit = 20; for($i=0;$i<=$limit;$i++) { echo $i "\n"; }
Output for 7.4.0 - 7.4.1
Parse error: syntax error, unexpected '"\n"' (T_CONSTANT_ENCAPSED_STRING), expecting ';' or ',' in /in/TRoOJ on line 6
Process exited with code 255.
Output for 7.2.0 - 7.3.13
Parse error: syntax error, unexpected '"\n"' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';' in /in/TRoOJ on line 6
Process exited with code 255.