3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $t = microtime(true); for ($i = 0; $i < 4000000; ++$i) $a[] = rand(); echo (microtime(true) - $t) / 1000;
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.13, 7.3.0 - 7.3.1
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 67108872 bytes) in /in/PCHKM on line 8
Process exited with code 255.

preferences:
71.95 ms | 402 KiB | 52 Q