3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; $output = ''; // Beginnen met een lege string while ($i<=10) { $output .= "i=$i "; // String toevoegen echo $output; time_nanosleep(1, 0); $i++; } ?>
Output for 5.4.0 - 5.4.25, 5.4.27 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.30, 7.4.0 - 7.4.24, 8.0.0 - 8.0.11
i=1 i=1 i=2 i=1 i=2 i=3
Process exited with code 137.
Output for 5.6.7
i=1 i=1 i=2
Process exited with code 137.
Output for 5.4.26
i=1
Process exited with code 137.

preferences:
114.07 ms | 401 KiB | 144 Q