3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 1000; $start = microtime(true); $a = ''; for($i = 0; $i < $count; $i++) { $a = $a . 'a'; } printf("#1, done in %f\n", microtime(true) - $start); $start = microtime(true); $a = ""; for($i = 0; $i < $count; $i++) { $a .= "a"; } printf("#2, done in %f\n", microtime(true) - $start);
Output for 7.1.0
#1, done in 0.000063 #2, done in 0.000038
Output for 7.0.14
#1, done in 0.000097 #2, done in 0.000078
Output for 7.0.6
#1, done in 0.000117 #2, done in 0.000037
Output for 7.0.5
#1, done in 0.000073 #2, done in 0.000031
Output for 7.0.4
#1, done in 0.000065 #2, done in 0.000034
Output for 7.0.3
#1, done in 0.000066 #2, done in 0.000036
Output for 7.0.2
#1, done in 0.000061 #2, done in 0.000034
Output for 7.0.1
#1, done in 0.000064 #2, done in 0.000035
Output for 7.0.0
#1, done in 0.000048 #2, done in 0.000030
Output for hhvm-3.12.0
#1, done in 0.000101 #2, done in 0.000061
Output for hhvm-3.10.0
#1, done in 0.000139 #2, done in 0.000088
Output for 5.6.28
#1, done in 0.000177 #2, done in 0.000074
Output for 5.6.21
#1, done in 0.000139 #2, done in 0.000068
Output for 5.6.20
#1, done in 0.000171 #2, done in 0.000071
Output for 5.6.19
#1, done in 0.000089 #2, done in 0.000043
Output for 5.6.18
#1, done in 0.000085 #2, done in 0.000051
Output for 5.6.17
#1, done in 0.000083 #2, done in 0.000041
Output for 5.6.16
#1, done in 0.000084 #2, done in 0.000042
Output for 5.6.15
#1, done in 0.000144 #2, done in 0.000071
Output for 5.6.14
#1, done in 0.000106 #2, done in 0.000050
Output for 5.6.13
#1, done in 0.000243 #2, done in 0.000113
Output for 5.6.12
#1, done in 0.000086 #2, done in 0.000043
Output for 5.6.11
#1, done in 0.000196 #2, done in 0.000066
Output for 5.6.10
#1, done in 0.000103 #2, done in 0.000050
Output for 5.6.9
#1, done in 0.000122 #2, done in 0.000059
Output for 5.6.8
#1, done in 0.000082 #2, done in 0.000041
Output for 5.6.7
#1, done in 0.000127 #2, done in 0.000069
Output for 5.5.35
#1, done in 0.000138 #2, done in 0.000084
Output for 5.5.34
#1, done in 0.000105 #2, done in 0.000052
Output for 5.5.33
#1, done in 0.000123 #2, done in 0.000101
Output for 5.5.32
#1, done in 0.000120 #2, done in 0.000060
Output for 5.5.31
#1, done in 0.000106 #2, done in 0.000051
Output for 5.5.30
#1, done in 0.000106 #2, done in 0.000052
Output for 5.5.29
#1, done in 0.000088 #2, done in 0.000043
Output for 5.5.28
#1, done in 0.000136 #2, done in 0.000068
Output for 5.5.27
#1, done in 0.000116 #2, done in 0.000057
Output for 5.5.26
#1, done in 0.000096 #2, done in 0.000048
Output for 5.5.25
#1, done in 0.000115 #2, done in 0.000057
Output for 5.5.24
#1, done in 0.000133 #2, done in 0.000064
Output for 5.4.45
#1, done in 0.000155 #2, done in 0.000086
Output for 5.4.44
#1, done in 0.000284 #2, done in 0.000107
Output for 5.4.43
#1, done in 0.000174 #2, done in 0.000088
Output for 5.4.42
#1, done in 0.000220 #2, done in 0.000062
Output for 5.4.41
#1, done in 0.000176 #2, done in 0.003279
Output for 5.4.40
#1, done in 0.000146 #2, done in 0.000109
Output for 5.4.39
#1, done in 0.000197 #2, done in 0.000104
Output for 5.4.38
#1, done in 0.000147 #2, done in 0.000062
Output for 5.4.37
#1, done in 0.000143 #2, done in 0.000060
Output for 5.4.36
#1, done in 0.000226 #2, done in 0.000061
Output for 5.4.0, 5.4.24, 5.4.35
#1, done in 0.000103 #2, done in 0.000046
Output for 5.4.34
#1, done in 0.000165 #2, done in 0.000109
Output for 5.4.32
#1, done in 0.000119 #2, done in 0.000039
Output for 5.4.31
#1, done in 0.000097 #2, done in 0.000043
Output for 5.4.30
#1, done in 0.000098 #2, done in 0.000043
Output for 5.4.29
#1, done in 0.000109 #2, done in 0.000057
Output for 5.4.28
#1, done in 0.000118 #2, done in 0.000043
Output for 5.4.27
#1, done in 0.000099 #2, done in 0.000084
Output for 5.4.26
#1, done in 0.000099 #2, done in 0.000075
Output for 5.4.25
#1, done in 0.000151 #2, done in 0.000045
Output for 5.4.23
#1, done in 0.000103 #2, done in 0.000049
Output for 5.4.6 - 5.4.7, 5.4.20, 5.4.22
#1, done in 0.000104 #2, done in 0.000044
Output for 5.4.21
#1, done in 0.000173 #2, done in 0.000114
Output for 5.4.19
#1, done in 0.000113 #2, done in 0.000096
Output for 5.4.18
#1, done in 0.000160 #2, done in 0.000085
Output for 5.4.17
#1, done in 0.000123 #2, done in 0.000044
Output for 5.4.16
#1, done in 0.000117 #2, done in 0.000043
Output for 5.4.15
#1, done in 0.000100 #2, done in 0.000045
Output for 5.4.14
#1, done in 0.000098 #2, done in 0.000088
Output for 5.4.13
#1, done in 0.000122 #2, done in 0.000063
Output for 5.4.12
#1, done in 0.000104 #2, done in 0.000045
Output for 5.4.11
#1, done in 0.000111 #2, done in 0.000056
Output for 5.4.10
#1, done in 0.000106 #2, done in 0.000046
Output for 5.4.9
#1, done in 0.000120 #2, done in 0.000042
Output for 5.4.8
#1, done in 0.000132 #2, done in 0.000056
Output for 5.4.5
#1, done in 0.000117 #2, done in 0.000045
Output for 5.4.4
#1, done in 0.000106 #2, done in 0.000045
Output for 5.4.3
#1, done in 0.000130 #2, done in 0.000045
Output for 5.4.2
#1, done in 0.000107 #2, done in 0.000046
Output for 5.4.1
#1, done in 0.000107 #2, done in 0.000058
Output for 5.3.29
#1, done in 0.000112 #2, done in 0.000052
Output for 5.3.28
#1, done in 0.000128 #2, done in 0.000052
Output for 5.3.27
#1, done in 0.000116 #2, done in 0.000078
Output for 5.3.26
#1, done in 0.000124 #2, done in 0.000052
Output for 5.3.4, 5.3.9, 5.3.25
#1, done in 0.000130 #2, done in 0.000051
Output for 5.3.24
#1, done in 0.000121 #2, done in 0.000064
Output for 5.3.23
#1, done in 0.000116 #2, done in 0.000051
Output for 5.3.22
#1, done in 0.000148 #2, done in 0.000050
Output for 5.3.21
#1, done in 0.000117 #2, done in 0.000054
Output for 5.3.20
#1, done in 0.000134 #2, done in 0.000081
Output for 5.3.19
#1, done in 0.000149 #2, done in 0.000064
Output for 5.3.17 - 5.3.18
#1, done in 0.000115 #2, done in 0.000053
Output for 5.3.16
#1, done in 0.000143 #2, done in 0.000050
Output for 5.3.15
#1, done in 0.000116 #2, done in 0.000052
Output for 5.3.14
#1, done in 0.000147 #2, done in 0.000081
Output for 5.3.13
#1, done in 0.000116 #2, done in 0.000065
Output for 5.3.12
#1, done in 0.000117 #2, done in 0.000063
Output for 5.3.11
#1, done in 0.000114 #2, done in 0.000051
Output for 5.3.10
#1, done in 0.000111 #2, done in 0.000111
Output for 5.3.8
#1, done in 0.000118 #2, done in 0.000080
Output for 5.3.7
#1, done in 0.000124 #2, done in 0.000058
Output for 5.3.6
#1, done in 0.000143 #2, done in 0.000053
Output for 5.3.5
#1, done in 0.000139 #2, done in 0.000079
Output for 5.3.3
#1, done in 0.000125 #2, done in 0.000061
Output for 5.3.2
#1, done in 0.000136 #2, done in 0.000051
Output for 5.3.1
#1, done in 0.000121 #2, done in 0.000063
Output for 5.3.0
#1, done in 0.000141 #2, done in 0.000051
Output for 5.2.17
#1, done in 0.000155 #2, done in 0.000093
Output for 5.2.16
#1, done in 0.000137 #2, done in 0.000095
Output for 5.2.15
#1, done in 0.000214 #2, done in 0.000089
Output for 5.2.14
#1, done in 0.000157 #2, done in 0.000085
Output for 5.2.13
#1, done in 0.000134 #2, done in 0.000069
Output for 5.2.12
#1, done in 0.000188 #2, done in 0.000070
Output for 5.2.11
#1, done in 0.000138 #2, done in 0.000093
Output for 5.2.10
#1, done in 0.000189 #2, done in 0.000065
Output for 5.2.9
#1, done in 0.000140 #2, done in 0.000090
Output for 5.2.8
#1, done in 0.000237 #2, done in 0.000204
Output for 5.2.7
#1, done in 0.000265 #2, done in 0.000178
Output for 5.2.6
#1, done in 0.000130 #2, done in 0.000108
Output for 5.2.5
#1, done in 0.000170 #2, done in 0.000068
Output for 5.2.4
#1, done in 0.000160 #2, done in 0.000111
Output for 5.2.3
#1, done in 0.000235 #2, done in 0.000109
Output for 5.2.2
#1, done in 0.000254 #2, done in 0.000125
Output for 5.2.1
#1, done in 0.000118 #2, done in 0.000118
Output for 5.2.0
#1, done in 0.000129 #2, done in 0.000097
Output for 5.1.6
#1, done in 0.000170 #2, done in 0.000112
Output for 5.1.5
#1, done in 0.000175 #2, done in 0.000112
Output for 5.1.4
#1, done in 0.000174 #2, done in 0.000110
Output for 5.1.3
#1, done in 0.000207 #2, done in 0.000113
Output for 5.1.2
#1, done in 0.000213 #2, done in 0.000107
Output for 5.1.1
#1, done in 0.000161 #2, done in 0.000137
Output for 5.1.0
#1, done in 0.000305 #2, done in 0.000116
Output for 5.0.5
#1, done in 0.000362 #2, done in 0.000277
Output for 5.0.4
#1, done in 0.000401 #2, done in 0.000278
Output for 5.0.3
#1, done in 0.000392 #2, done in 0.000294
Output for 5.0.2
#1, done in 0.000368 #2, done in 0.000244
Output for 5.0.1
#1, done in 0.000353 #2, done in 0.000274
Output for 5.0.0
#1, done in 0.000364 #2, done in 0.000263
Output for 4.4.9
#1, done in 0.000548 #2, done in 0.000244
Output for 4.4.8
#1, done in 0.000376 #2, done in 0.000269
Output for 4.4.7
#1, done in 0.000583 #2, done in 0.000435
Output for 4.4.6
#1, done in 0.000350 #2, done in 0.000240
Output for 4.4.5
#1, done in 0.000356 #2, done in 0.000406
Output for 4.4.4
#1, done in 0.000647 #2, done in 0.000451
Output for 4.4.3
#1, done in 0.000371 #2, done in 0.000238
Output for 4.4.2
#1, done in 0.000545 #2, done in 0.000402
Output for 4.4.1
#1, done in 0.000421 #2, done in 0.000247
Output for 4.4.0
#1, done in 0.000390 #2, done in 0.000275
Output for 4.3.11
#1, done in 0.000369 #2, done in 0.000281
Output for 4.3.10
#1, done in 0.000368 #2, done in 0.000282
Output for 4.3.9
#1, done in 0.000371 #2, done in 0.000279
Output for 4.3.8
#1, done in 0.000362 #2, done in 0.000303
Output for 4.3.7
#1, done in 0.000438 #2, done in 0.000300
Output for 4.3.6
#1, done in 0.000435 #2, done in 0.000336
Output for 4.3.5
#1, done in 0.000376 #2, done in 0.000271
Output for 4.3.4
#1, done in 0.000377 #2, done in 0.000294
Output for 4.3.3
#1, done in 0.000381 #2, done in 0.000294
Output for 4.3.2
#1, done in 0.000388 #2, done in 0.000293
Output for 4.3.1
#1, done in 0.000352 #2, done in 0.000276
Output for 4.3.0
#1, done in 0.000700 #2, done in 0.000402