3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(); for ($i = 0; $i < 1000000; $i++) { $x[] = $i; } for ($i = 0; $i < 1000000; $i++) { $x[$i]++; } for ($i = 0; $i < 1000000; $i++) { echo array_pop($x); }

preferences:
58.66 ms | 402 KiB | 5 Q