3v4l.org

run code in 200+ PHP versions simultaneously
<?php $limit = 20; for($i=0;$i<=$limit;$i++) { echo $i ."\n"; }
based on TRoOJ
Output for 7.2.0 - 7.4.1
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20