3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 2 ** 20; $idxs = range(1, $max-1); print_r($max); print_r($max-1);

preferences:
50.25 ms | 402 KiB | 5 Q