3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 1000000; $time = microtime(true); $items = array(); for ($i = 0; $i < $count; $i++) { $items[] = array(); } $spentTime = microtime(true) - $time; echo 'create array test took ' . number_format($spentTime, 3) . ' seconds';
Output for 7.1.0
create array test took 0.040 seconds
Output for 7.0.0 - 7.0.14
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 33554440 bytes) in /in/NcOd8 on line 10
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/NcOd8 on line 10
Process exited with code 255.
Output for 5.2.6 - 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 64 bytes) in /in/NcOd8 on line 10
Process exited with code 255.
Output for 5.2.1 - 5.2.5
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/NcOd8 on line 10
Process exited with code 255.
Output for 5.2.0
Fatal error: Out of memory (allocated 266076160) (tried to allocate 24 bytes) in /in/NcOd8 on line 10
Process exited with code 255.
Output for 5.1.6
create array test took 0.527 seconds
Output for 5.1.5
create array test took 0.669 seconds
Output for 5.1.4
create array test took 0.706 seconds
Output for 5.1.3
create array test took 0.574 seconds
Output for 5.1.2
create array test took 0.657 seconds
Output for 5.1.1
create array test took 0.796 seconds
Output for 5.1.0
create array test took 0.611 seconds
Output for 5.0.5
create array test took 0.840 seconds
Output for 5.0.4
create array test took 1.043 seconds
Output for 5.0.3
create array test took 0.740 seconds
Output for 5.0.2
create array test took 0.811 seconds
Output for 5.0.1
create array test took 1.310 seconds
Output for 5.0.0
create array test took 1.097 seconds
Output for 4.4.9
create array test took 0.957 seconds
Output for 4.3.9, 4.4.8
create array test took 0.993 seconds
Output for 4.4.7
create array test took 0.825 seconds
Output for 4.4.6
create array test took 0.779 seconds
Output for 4.4.5
create array test took 0.819 seconds
Output for 4.4.4
create array test took 0.800 seconds
Output for 4.4.3
create array test took 0.867 seconds
Output for 4.4.2
create array test took 0.865 seconds
Output for 4.4.1
create array test took 0.864 seconds
Output for 4.4.0
create array test took 0.822 seconds
Output for 4.3.11
create array test took 0.798 seconds
Output for 4.3.10
create array test took 0.849 seconds
Output for 4.3.8
create array test took 0.815 seconds
Output for 4.3.7
create array test took 0.894 seconds
Output for 4.3.1, 4.3.6
create array test took 0.917 seconds
Output for 4.3.5
create array test took 0.970 seconds
Output for 4.3.4
create array test took 0.909 seconds
Output for 4.3.3
create array test took 0.030 seconds
Output for 4.3.2
create array test took 0.950 seconds
Output for 4.3.0
create array test took 0.853 seconds