3v4l.org

run code in 200+ 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.2.0
#1, done in 0.000084 #2, done in 0.000053
Output for 7.1.7
#1, done in 0.000044 #2, done in 0.000024
Output for 7.1.6
#1, done in 0.000046 #2, done in 0.000035
Output for 7.1.5
#1, done in 0.000111 #2, done in 0.000086
Output for 7.1.0
#1, done in 0.000063 #2, done in 0.000038
Output for 7.0.20
#1, done in 0.000072 #2, done in 0.000039
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 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.12, 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.3.8, 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.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.000125 #2, done in 0.000110
Output for 5.4.24
#1, done in 0.000184 #2, done in 0.000077
Output for 5.4.23
#1, done in 0.000126 #2, done in 0.000060
Output for 5.4.1, 5.4.22
#1, done in 0.000127 #2, done in 0.000060
Output for 5.4.21
#1, done in 0.000127 #2, done in 0.000131
Output for 5.4.20
#1, done in 0.000148 #2, done in 0.000061
Output for 5.4.19
#1, done in 0.000177 #2, done in 0.000135
Output for 5.4.18
#1, done in 0.000148 #2, done in 0.000126
Output for 5.4.17
#1, done in 0.000199 #2, done in 0.000100
Output for 5.4.16
#1, done in 0.000133 #2, done in 0.000058
Output for 5.4.15
#1, done in 0.000126 #2, done in 0.000058
Output for 5.4.14
#1, done in 0.000128 #2, done in 0.000079
Output for 5.4.13
#1, done in 0.000157 #2, done in 0.000079
Output for 5.4.11
#1, done in 0.000212 #2, done in 0.000143
Output for 5.4.10
#1, done in 0.000128 #2, done in 0.000122
Output for 5.4.9
#1, done in 0.000149 #2, done in 0.000063
Output for 5.4.8
#1, done in 0.000143 #2, done in 0.000088
Output for 5.4.7
#1, done in 0.000126 #2, done in 0.000097
Output for 5.4.6
#1, done in 0.000152 #2, done in 0.000064
Output for 5.4.5
#1, done in 0.000130 #2, done in 0.000079
Output for 5.4.4
#1, done in 0.000127 #2, done in 0.000059
Output for 5.4.3
#1, done in 0.000125 #2, done in 0.000101
Output for 5.4.2
#1, done in 0.000135 #2, done in 0.000058
Output for 5.4.0
#1, done in 0.000127 #2, done in 0.000081
Output for 5.3.29
#1, done in 0.000112 #2, done in 0.000052
Output for 5.3.28
#1, done in 0.000154 #2, done in 0.000114
Output for 5.3.27
#1, done in 0.000238 #2, done in 0.000156
Output for 5.3.26
#1, done in 0.000145 #2, done in 0.000073
Output for 5.3.25
#1, done in 0.000171 #2, done in 0.000098
Output for 5.3.24
#1, done in 0.000153 #2, done in 0.000094
Output for 5.3.23
#1, done in 0.000152 #2, done in 0.000088
Output for 5.3.22
#1, done in 0.000149 #2, done in 0.000069
Output for 5.3.21
#1, done in 0.000235 #2, done in 0.000115
Output for 5.3.20
#1, done in 0.000175 #2, done in 0.000074
Output for 5.3.19
#1, done in 0.000149 #2, done in 0.000113
Output for 5.3.18
#1, done in 0.000224 #2, done in 0.000157
Output for 5.3.17
#1, done in 0.000149 #2, done in 0.000091
Output for 5.3.16
#1, done in 0.000151 #2, done in 0.000069
Output for 5.3.15
#1, done in 0.000155 #2, done in 0.000100
Output for 5.3.14
#1, done in 0.000153 #2, done in 0.000073
Output for 5.3.13
#1, done in 0.000186 #2, done in 0.000069
Output for 5.3.12
#1, done in 0.000146 #2, done in 0.000069
Output for 5.3.11
#1, done in 0.000163 #2, done in 0.000101
Output for 5.3.10
#1, done in 0.000235 #2, done in 0.000114
Output for 5.3.9
#1, done in 0.000153 #2, done in 0.000072
Output for 5.3.7
#1, done in 0.000150 #2, done in 0.000072
Output for 5.3.6
#1, done in 0.000168 #2, done in 0.000106
Output for 5.3.5
#1, done in 0.000169 #2, done in 0.000128
Output for 5.3.4
#1, done in 0.000149 #2, done in 0.000123
Output for 5.3.3
#1, done in 0.000151 #2, done in 0.000070
Output for 5.3.2
#1, done in 0.000163 #2, done in 0.000073
Output for 5.3.1
#1, done in 0.000149 #2, done in 0.000152
Output for 5.3.0
#1, done in 0.000151 #2, done in 0.000117
Output for 5.2.17
#1, done in 0.000229 #2, done in 0.000123
Output for 5.2.16
#1, done in 0.000183 #2, done in 0.000089
Output for 5.2.15
#1, done in 0.000209 #2, done in 0.000089
Output for 5.2.14
#1, done in 0.000174 #2, done in 0.000109
Output for 5.2.13
#1, done in 0.000230 #2, done in 0.000118
Output for 5.2.12
#1, done in 0.000174 #2, done in 0.000152
Output for 5.2.11
#1, done in 0.000313 #2, done in 0.000272
Output for 5.2.10
#1, done in 0.000286 #2, done in 0.000156
Output for 5.2.9
#1, done in 0.000174 #2, done in 0.000117
Output for 5.2.8
#1, done in 0.000211 #2, done in 0.000091
Output for 5.2.7
#1, done in 0.000180 #2, done in 0.000110
Output for 5.2.6
#1, done in 0.000182 #2, done in 0.000092
Output for 5.2.5
#1, done in 0.000198 #2, done in 0.000120
Output for 5.2.4
#1, done in 0.000202 #2, done in 0.000124
Output for 5.2.3
#1, done in 0.000244 #2, done in 0.000121
Output for 5.2.2
#1, done in 0.000201 #2, done in 0.000124
Output for 5.2.1
#1, done in 0.000146 #2, done in 0.000082
Output for 5.2.0
#1, done in 0.000162 #2, done in 0.000166
Output for 5.1.6
#1, done in 0.000251 #2, done in 0.000203
Output for 5.1.5
#1, done in 0.000229 #2, done in 0.000161
Output for 5.1.4
#1, done in 0.000285 #2, done in 0.000220
Output for 5.1.3
#1, done in 0.000245 #2, done in 0.000154
Output for 5.1.2
#1, done in 0.000267 #2, done in 0.000161
Output for 5.1.1
#1, done in 0.000219 #2, done in 0.000114
Output for 5.1.0
#1, done in 0.000237 #2, done in 0.000135
Output for 5.0.5
#1, done in 0.000565 #2, done in 0.000314
Output for 5.0.4
#1, done in 0.000462 #2, done in 0.000488
Output for 5.0.3
#1, done in 0.000524 #2, done in 0.000337
Output for 5.0.2
#1, done in 0.000476 #2, done in 0.000320
Output for 5.0.1
#1, done in 0.000585 #2, done in 0.000350
Output for 5.0.0
#1, done in 0.000550 #2, done in 0.000370
Output for 4.4.9
#1, done in 0.000548 #2, done in 0.000346
Output for 4.4.8
#1, done in 0.000472 #2, done in 0.000523
Output for 4.4.7
#1, done in 0.000596 #2, done in 0.000353
Output for 4.4.6
#1, done in 0.000460 #2, done in 0.000288
Output for 4.4.5
#1, done in 0.000459 #2, done in 0.000418
Output for 4.4.4
#1, done in 0.000480 #2, done in 0.000358
Output for 4.4.3
#1, done in 0.000491 #2, done in 0.000374
Output for 4.4.2
#1, done in 0.000494 #2, done in 0.000346
Output for 4.4.1
#1, done in 0.000505 #2, done in 0.000323
Output for 4.4.0
#1, done in 0.000488 #2, done in 0.000353
Output for 4.3.11
#1, done in 0.000497 #2, done in 0.000294
Output for 4.3.10
#1, done in 0.000538 #2, done in 0.000413
Output for 4.3.9
#1, done in 0.000629 #2, done in 0.000499
Output for 4.3.8
#1, done in 0.000752 #2, done in 0.000549
Output for 4.3.7
#1, done in 0.000588 #2, done in 0.000310
Output for 4.3.6
#1, done in 0.000550 #2, done in 0.000400
Output for 4.3.5
#1, done in 0.000788 #2, done in 0.000517
Output for 4.3.4
#1, done in 0.000703 #2, done in 0.000317
Output for 4.3.3
#1, done in 0.000556 #2, done in 0.000396
Output for 4.3.2
#1, done in 0.000476 #2, done in 0.000407
Output for 4.3.1
#1, done in 0.000449 #2, done in 0.000337
Output for 4.3.0
#1, done in 0.000700 #2, done in 0.000402