3v4l.org

run code in 500+ PHP versions simultaneously
<?php function printRange(int $from, int $to) { for($i=$from; $i<=$to; $i++) echo "$i "; } printRange(1, 48); printRange(114, 118);
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 114 115 116 117 118

preferences:
65.15 ms | 992 KiB | 4 Q