3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 10; $i++) { var_dump($i); $i *= 2; }
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.16, 8.3.0 - 8.3.3
int(0) int(1) int(3) int(7)

preferences:
64.25 ms | 402 KiB | 54 Q