3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(); for ($i = 0; $i < 100000; $i++) { $x[] = $i; } for ($i = 0; $i < 100000; $i++) { $x[$i] = $x[$i]+1; } for ($i = 0; $i < 100000; $i++) { echo array_pop($x); } #$string = implode(",", $x); #$x = explode(",", $string);

preferences:
37.31 ms | 402 KiB | 5 Q