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 number_format($spentTime, 3) . ' seconds';
Output for 7.0.0, 7.1.0
0.017 seconds
Output for 7.0.14
0.020 seconds
Output for 7.0.10
0.022 seconds
Output for 7.0.9
0.090 seconds
Output for 7.0.8
0.117 seconds
Output for 5.6.2, 5.6.4, 7.0.7
0.043 seconds
Output for 5.4.32, 5.5.15, 5.5.29, 5.6.7 - 5.6.8, 5.6.17, 5.6.21, 7.0.6
0.057 seconds
Output for 5.4.7, 5.4.35, 5.5.3, 7.0.5
0.050 seconds
Output for 7.0.4
0.044 seconds
Output for 7.0.3
0.041 seconds
Output for 5.4.8, 5.4.18, 5.4.27, 5.4.45, 5.5.13, 5.5.19, 5.5.23, 5.6.22, 7.0.2
0.062 seconds
Output for 7.0.1
0.030 seconds
Output for 5.6.28
-0.026 seconds
Output for 5.4.6, 5.5.0, 5.5.30, 5.6.10, 5.6.25
0.063 seconds
Output for 5.6.24
0.056 seconds
Output for 5.6.23
0.072 seconds
Output for 5.4.31, 5.6.18, 5.6.20
0.055 seconds
Output for 5.5.16 - 5.5.18, 5.5.22, 5.6.19
0.053 seconds
Output for 5.4.36, 5.5.2, 5.6.15 - 5.6.16
0.049 seconds
Output for 5.4.1, 5.4.5, 5.4.13, 5.5.31, 5.5.35, 5.6.14
0.051 seconds
Output for 5.6.1, 5.6.13
0.047 seconds
Output for 5.4.29, 5.4.41, 5.6.12
0.052 seconds
Output for 5.4.0, 5.5.1, 5.5.4, 5.6.11
0.069 seconds
Output for 5.4.9, 5.4.20, 5.4.28, 5.6.9
0.066 seconds
Output for 5.4.26, 5.4.38 - 5.4.39, 5.5.7, 5.5.25, 5.6.6
0.071 seconds
Output for 5.6.5
0.048 seconds
Output for 5.5.14, 5.5.34, 5.6.3
0.059 seconds
Output for 5.4.4, 5.6.0
0.078 seconds
Output for 5.5.38
0.073 seconds
Output for 5.5.37
0.101 seconds
Output for 5.4.2, 5.4.16, 5.5.8, 5.5.36
0.065 seconds
Output for 5.4.21, 5.4.42, 5.5.27, 5.5.33
0.061 seconds
Output for 5.4.3, 5.4.11, 5.4.44, 5.5.32
0.070 seconds
Output for 5.5.28
0.077 seconds
Output for 5.4.12, 5.4.43, 5.5.6, 5.5.26
0.064 seconds
Output for 5.4.19, 5.5.24
0.074 seconds
Output for 5.4.30, 5.5.21
0.054 seconds
Output for 5.4.17, 5.4.34, 5.4.37, 5.5.20
0.058 seconds
Output for 5.5.12
0.067 seconds
Output for 5.4.24, 5.4.40, 5.5.11
0.075 seconds
Output for 5.4.10, 5.4.15, 5.5.5, 5.5.10
0.068 seconds
Output for 5.4.22, 5.5.9
0.060 seconds
Output for 5.4.25
0.084 seconds
Output for 5.4.14, 5.4.23
0.080 seconds
Output for 5.3.0 - 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 64 bytes) in /in/GhCsi on line 11
Process exited with code 255.
Output for 5.2.2 - 5.2.3, 5.2.5 - 5.2.6, 5.2.10 - 5.2.15, 5.2.17
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/GhCsi on line 11
Process exited with code 139.
Output for 5.2.4, 5.2.16
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/GhCsi on line 11
Process exited with code 132.
Output for 5.2.7 - 5.2.9
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in /in/GhCsi 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 71 bytes) in /in/GhCsi on line 11
Process exited with code 255.
Output for 5.2.0
0.092 seconds
Output for 5.1.6
0.125 seconds
Output for 5.1.4 - 5.1.5
0.137 seconds
Output for 5.1.3
0.134 seconds
Output for 5.1.2
0.112 seconds
Output for 4.4.1, 5.0.2, 5.1.1
0.128 seconds
Output for 5.1.0
0.099 seconds
Output for 5.0.5
0.114 seconds
Output for 5.0.4
0.115 seconds
Output for 5.0.3
0.145 seconds
Output for 4.4.3, 5.0.1
0.156 seconds
Output for 4.3.1, 4.3.7, 4.4.4, 4.4.9 - 5.0.0
0.139 seconds
Output for 4.4.6, 4.4.8
0.124 seconds
Output for 4.4.7
0.110 seconds
Output for 4.4.5
0.158 seconds
Output for 4.4.2
0.133 seconds
Output for 4.4.0
0.131 seconds
Output for 4.3.8, 4.3.11
0.146 seconds
Output for 4.3.10
0.123 seconds
Output for 4.3.9
0.135 seconds
Output for 4.3.6
0.104 seconds
Output for 4.3.5
0.142 seconds
Output for 4.3.4
0.147 seconds
Output for 4.3.3
0.151 seconds
Output for 4.3.2
0.161 seconds
Output for 4.3.0
0.121 seconds