3v4l.org

run code in 500+ PHP versions simultaneously
<?php $list = []; foreach(range(5, 10) as $i) { // foreach(range(5, 10)) { <===== $list[] = rand(0, 100); }
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.24, 8.4.1 - 8.4.11

preferences:
42.51 ms | 754 KiB | 4 Q