3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 200000; class ValueObject {} $time = microtime(true); $items = array(); for ($i = 0; $i < $count; $i++) { $items[] = new ValueObject(); } $spentTime = microtime(true) - $time; echo 'create array test took ' . number_format($spentTime, 3) . ' seconds';
Output for 7.1.0
create array test took 0.018 seconds
Output for 7.0.14
create array test took 0.021 seconds
Output for 7.0.10
create array test took 0.020 seconds
Output for 7.0.9
create array test took 0.028 seconds
Output for 7.0.8
create array test took 0.029 seconds
Output for 7.0.7
create array test took 0.035 seconds
Output for 7.0.4, 7.0.6
create array test took 0.033 seconds
Output for 7.0.5
create array test took 0.015 seconds
Output for 7.0.2 - 7.0.3
create array test took 0.014 seconds
Output for 7.0.1
create array test took 0.013 seconds
Output for 7.0.0
create array test took 0.016 seconds
Output for 5.6.13, 5.6.17, hhvm-3.12.0
create array test took 0.041 seconds
Output for 5.4.7, 5.4.36, 5.4.38, 5.5.21, hhvm-3.10.0
create array test took 0.065 seconds
Output for 5.4.20, 5.4.27, 5.4.37, 5.5.5, 5.6.18, 5.6.28
create array test took 0.057 seconds
Output for 5.4.41, 5.5.0, 5.5.2, 5.5.13, 5.6.25
create array test took 0.056 seconds
Output for 5.4.2, 5.4.11, 5.5.24, 5.6.2, 5.6.6, 5.6.24
create array test took 0.054 seconds
Output for 5.5.12, 5.6.23
create array test took 0.084 seconds
Output for 5.4.9, 5.4.30, 5.5.6, 5.6.22
create array test took 0.055 seconds
Output for 5.4.22, 5.5.8, 5.5.35 - 5.5.36, 5.6.3, 5.6.21
create array test took 0.064 seconds
Output for 5.6.8 - 5.6.9, 5.6.12, 5.6.15 - 5.6.16, 5.6.20
create array test took 0.042 seconds
Output for 5.6.19
create array test took 0.039 seconds
Output for 5.4.40, 5.6.0, 5.6.14
create array test took 0.045 seconds
Output for 5.6.7, 5.6.11
create array test took 0.043 seconds
Output for 5.6.10
create array test took 0.044 seconds
Output for 5.4.12, 5.4.29, 5.4.34, 5.6.5
create array test took 0.060 seconds
Output for 5.4.1, 5.5.4, 5.5.38, 5.6.4
create array test took 0.063 seconds
Output for 5.4.31, 5.4.39, 5.5.16, 5.5.22, 5.5.30, 5.6.1
create array test took 0.059 seconds
Output for 5.4.8, 5.4.16, 5.5.9, 5.5.37
create array test took 0.058 seconds
Output for 5.4.15, 5.4.42, 5.4.45, 5.5.26 - 5.5.27, 5.5.31 - 5.5.34
create array test took 0.048 seconds
Output for 5.5.28 - 5.5.29
create array test took 0.053 seconds
Output for 5.4.43 - 5.4.44, 5.5.25
create array test took 0.050 seconds
Output for 5.5.23
create array test took 0.083 seconds
Output for 5.4.17, 5.4.35, 5.5.1, 5.5.20
create array test took 0.062 seconds
Output for 5.5.19
create array test took 0.075 seconds
Output for 5.5.15, 5.5.18
create array test took 0.067 seconds
Output for 5.4.4, 5.4.25, 5.5.3, 5.5.14
create array test took 0.066 seconds
Output for 5.1.6, 5.5.11
create array test took 0.096 seconds
Output for 5.4.0, 5.5.10
create array test took 0.069 seconds
Output for 5.4.5, 5.5.7
create array test took 0.070 seconds
Output for 5.4.23, 5.4.32
create array test took 0.052 seconds
Output for 5.4.3, 5.4.26, 5.4.28
create array test took 0.071 seconds
Output for 5.4.14, 5.4.24
create array test took 0.051 seconds
Output for 5.4.13, 5.4.21
create array test took 0.049 seconds
Output for 5.4.6, 5.4.18 - 5.4.19
create array test took 0.061 seconds
Output for 5.4.10
create array test took 0.068 seconds
Output for 5.3.11 - 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in /in/5aOMT on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.10
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/5aOMT on line 11
Process exited with code 255.
Output for 5.2.2 - 5.2.6, 5.2.10 - 5.2.17
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/5aOMT on line 11
Process exited with code 255.
Output for 5.2.7 - 5.2.9
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 64 bytes) in /in/5aOMT on line 11
Process exited with code 255.
Output for 5.2.1
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/5aOMT on line 11
Process exited with code 139.
Output for 5.2.0
create array test took 0.087 seconds
Output for 5.1.5
create array test took 0.114 seconds
Output for 4.4.4, 5.1.4
create array test took 0.125 seconds
Output for 5.1.3
create array test took 0.107 seconds
Output for 5.1.2
create array test took 0.119 seconds
Output for 5.1.1
create array test took 0.100 seconds
Output for 5.1.0
create array test took 0.108 seconds
Output for 5.0.5
create array test took 0.149 seconds
Output for 4.4.5, 4.4.9, 5.0.4
create array test took 0.142 seconds
Output for 5.0.3
create array test took 0.118 seconds
Output for 5.0.2
create array test took 0.139 seconds
Output for 5.0.1
create array test took 0.132 seconds
Output for 4.4.8, 5.0.0
create array test took 0.121 seconds
Output for 4.4.7
create array test took 0.154 seconds
Output for 4.4.6
create array test took 0.137 seconds
Output for 4.4.3
create array test took 0.148 seconds
Output for 4.3.6, 4.3.8 - 4.3.9, 4.4.2
create array test took 0.140 seconds
Output for 4.4.1
create array test took 0.159 seconds
Output for 4.4.0
create array test took 0.111 seconds
Output for 4.3.1, 4.3.4, 4.3.11
create array test took 0.136 seconds
Output for 4.3.10
create array test took 0.123 seconds
Output for 4.3.7
create array test took 0.147 seconds
Output for 4.3.5
create array test took 0.144 seconds
Output for 4.3.3
create array test took 0.134 seconds
Output for 4.3.2
create array test took 0.150 seconds
Output for 4.3.0
create array test took 0.152 seconds