3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array(); $arr2 = array(); for ($i = 0; $i < 10000000; $i++) { $arr1[$i] = 'a'; $arr2[$i] = 'a'; } $start = microtime(true); for ($i = 0; $i < 10000000; $i++) { $arr1[$i] = null; } $elapsed = microtime(true) - $start; echo 'took '. $elapsed .'seconds<br>'; $start = microtime(true); for ($i = 0; $i < 10000000; $i++) { unset($arr2[$i]); } $elapsed = microtime(true) - $start; echo 'took '. $elapsed .'seconds<br>';

Abusive script

This script was stopped while abusing our resources

Output for 5.4.0 - 5.4.45
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/a6Vap on line 5
Process exited with code 255.

preferences:
51.83 ms | 405 KiB | 5 Q