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'; } 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.000040 #2, done in 0.000037
Output for 5.6.8, 7.0.14
#1, done in 0.000067 #2, done in 0.000064
Output for 7.0.10
#1, done in 0.000071 #2, done in 0.000049
Output for 7.0.9
#1, done in 0.000030 #2, done in 0.000020
Output for 7.0.8
#1, done in 0.000037 #2, done in 0.000034
Output for 7.0.7
#1, done in 0.000031 #2, done in 0.000020
Output for 7.0.6
#1, done in 0.000036 #2, done in 0.000021
Output for 7.0.5
#1, done in 0.000047 #2, done in 0.000029
Output for 7.0.4
#1, done in 0.000038 #2, done in 0.000036
Output for 7.0.3
#1, done in 0.000042 #2, done in 0.000059
Output for 7.0.2
#1, done in 0.000041 #2, done in 0.000037
Output for 7.0.1
#1, done in 0.000047 #2, done in 0.000048
Output for 7.0.0
#1, done in 0.000062 #2, done in 0.000060
Output for hhvm-3.12.0
#1, done in 0.000105 #2, done in 0.000088
Output for hhvm-3.10.0
#1, done in 0.000128 #2, done in 0.000105
Output for 5.3.28, 5.6.28
#1, done in 0.000076 #2, done in 0.000074
Output for 5.5.2, 5.5.32, 5.6.25
#1, done in 0.000058 #2, done in 0.000055
Output for 5.6.24
#1, done in 0.000040 #2, done in 0.000038
Output for 5.6.23
#1, done in 0.000045 #2, done in 0.000049
Output for 5.6.22
#1, done in 0.000045 #2, done in 0.000046
Output for 5.6.21
#1, done in 0.000036 #2, done in 0.000034
Output for 5.6.20
#1, done in 0.000043 #2, done in 0.000039
Output for 5.4.17, 5.4.35, 5.6.19
#1, done in 0.000061 #2, done in 0.000058
Output for 5.4.4, 5.6.18
#1, done in 0.000069 #2, done in 0.000066
Output for 5.6.17
#1, done in 0.000110 #2, done in 0.000106
Output for 5.6.16
#1, done in 0.000051 #2, done in 0.000047
Output for 5.4.40, 5.6.15
#1, done in 0.000072 #2, done in 0.000069
Output for 5.6.14
#1, done in 0.000070 #2, done in 0.000080
Output for 5.6.13
#1, done in 0.000066 #2, done in 0.000062
Output for 5.6.12
#1, done in 0.000066 #2, done in 0.000079
Output for 5.6.11
#1, done in 0.000048 #2, done in 0.000058
Output for 5.6.10
#1, done in 0.000057 #2, done in 0.000055
Output for 5.6.9
#1, done in 0.000068 #2, done in 0.000065
Output for 5.5.11, 5.6.7
#1, done in 0.000059 #2, done in 0.000057
Output for 5.6.6
#1, done in 0.000073 #2, done in 0.000063
Output for 5.5.24, 5.6.5
#1, done in 0.000057 #2, done in 0.000068
Output for 5.6.0, 5.6.4
#1, done in 0.000062 #2, done in 0.000059
Output for 5.6.3
#1, done in 0.000067 #2, done in 0.000068
Output for 5.6.2
#1, done in 0.000074 #2, done in 0.000089
Output for 5.6.1
#1, done in 0.000067 #2, done in 0.000074
Output for 5.5.36, 5.5.38
#1, done in 0.000045 #2, done in 0.000043
Output for 5.5.37
#1, done in 0.000038 #2, done in 0.000035
Output for 5.5.35
#1, done in 0.000045 #2, done in 0.000042
Output for 5.5.34
#1, done in 0.000111 #2, done in 0.000107
Output for 5.5.33
#1, done in 0.000077 #2, done in 0.000078
Output for 5.5.27, 5.5.31
#1, done in 0.000060 #2, done in 0.000057
Output for 5.5.30
#1, done in 0.000063 #2, done in 0.000060
Output for 5.5.29
#1, done in 0.000060 #2, done in 0.000058
Output for 5.5.28
#1, done in 0.000049 #2, done in 0.000058
Output for 5.5.26
#1, done in 0.000070 #2, done in 0.000066
Output for 5.5.25
#1, done in 0.000046 #2, done in 0.000044
Output for 5.5.5, 5.5.12, 5.5.23
#1, done in 0.000071 #2, done in 0.000068
Output for 5.5.22
#1, done in 0.000059 #2, done in 0.000069
Output for 5.5.21
#1, done in 0.000098 #2, done in 0.000078
Output for 5.5.20
#1, done in 0.000066 #2, done in 0.000040
Output for 5.5.1, 5.5.19
#1, done in 0.000059 #2, done in 0.000056
Output for 5.3.16, 5.5.18
#1, done in 0.000086 #2, done in 0.000084
Output for 5.5.16
#1, done in 0.000059 #2, done in 0.000063
Output for 5.5.15
#1, done in 0.000066 #2, done in 0.000059
Output for 5.5.14
#1, done in 0.000071 #2, done in 0.000056
Output for 5.5.13
#1, done in 0.000043 #2, done in 0.000040
Output for 5.5.4, 5.5.10
#1, done in 0.000065 #2, done in 0.000062
Output for 5.4.11, 5.5.9
#1, done in 0.000072 #2, done in 0.000068
Output for 5.5.8
#1, done in 0.000055 #2, done in 0.000052
Output for 5.5.7
#1, done in 0.000046 #2, done in 0.000052
Output for 5.5.6
#1, done in 0.000062 #2, done in 0.000074
Output for 5.5.3
#1, done in 0.000063 #2, done in 0.000059
Output for 5.5.0
#1, done in 0.000062 #2, done in 0.000077
Output for 5.4.45
#1, done in 0.000047 #2, done in 0.000046
Output for 5.4.44
#1, done in 0.000068 #2, done in 0.000087
Output for 5.4.43
#1, done in 0.000061 #2, done in 0.000059
Output for 5.4.42
#1, done in 0.000069 #2, done in 0.000065
Output for 5.4.19, 5.4.41
#1, done in 0.000072 #2, done in 0.000067
Output for 5.4.39
#1, done in 0.000055 #2, done in 0.000051
Output for 5.4.38
#1, done in 0.000075 #2, done in 0.000064
Output for 5.4.37
#1, done in 0.000056 #2, done in 0.000053
Output for 5.4.36
#1, done in 0.000058 #2, done in 0.000056
Output for 5.4.34
#1, done in 0.000061 #2, done in 0.000061
Output for 5.4.32
#1, done in 0.000094 #2, done in 0.000091
Output for 5.4.24, 5.4.31
#1, done in 0.000066 #2, done in 0.000063
Output for 5.4.30
#1, done in 0.000044 #2, done in 0.000040
Output for 5.4.5, 5.4.29
#1, done in 0.000067 #2, done in 0.000063
Output for 5.4.28
#1, done in 0.000067 #2, done in 0.000058
Output for 5.4.27
#1, done in 0.000060 #2, done in 0.000062
Output for 5.4.26
#1, done in 0.000067 #2, done in 0.000082
Output for 5.4.25
#1, done in 0.000047 #2, done in 0.000056
Output for 5.4.23
#1, done in 0.000064 #2, done in 0.000060
Output for 5.4.22
#1, done in 0.000075 #2, done in 0.000071
Output for 5.4.21
#1, done in 0.000069 #2, done in 0.000067
Output for 5.4.20
#1, done in 0.000069 #2, done in 0.000090
Output for 5.4.18
#1, done in 0.000064 #2, done in 0.000073
Output for 5.4.16
#1, done in 0.000059 #2, done in 0.000055
Output for 5.4.15
#1, done in 0.000069 #2, done in 0.000074
Output for 5.4.14
#1, done in 0.000068 #2, done in 0.000074
Output for 5.4.3, 5.4.13
#1, done in 0.000044 #2, done in 0.000053
Output for 5.4.12
#1, done in 0.000060 #2, done in 0.000056
Output for 5.4.10
#1, done in 0.000053 #2, done in 0.000049
Output for 5.4.9
#1, done in 0.000073 #2, done in 0.000072
Output for 5.4.8
#1, done in 0.000071 #2, done in 0.000067
Output for 5.4.7
#1, done in 0.000049 #2, done in 0.000057
Output for 5.4.6
#1, done in 0.000047 #2, done in 0.000045
Output for 5.4.2
#1, done in 0.000073 #2, done in 0.000070
Output for 5.4.1
#1, done in 0.000061 #2, done in 0.000062
Output for 5.4.0
#1, done in 0.000070 #2, done in 0.000068
Output for 5.3.29
#1, done in 0.000080 #2, done in 0.000078
Output for 5.3.27
#1, done in 0.000055 #2, done in 0.000067
Output for 5.3.26
#1, done in 0.000074 #2, done in 0.000070
Output for 5.3.25
#1, done in 0.000084 #2, done in 0.000082
Output for 5.3.24
#1, done in 0.000078 #2, done in 0.000073
Output for 5.3.23
#1, done in 0.000053 #2, done in 0.000070
Output for 5.3.22
#1, done in 0.000084 #2, done in 0.000084
Output for 5.3.21
#1, done in 0.000082 #2, done in 0.000079
Output for 5.3.20
#1, done in 0.000074 #2, done in 0.000086
Output for 5.2.12, 5.3.19
#1, done in 0.000064 #2, done in 0.000062
Output for 5.3.18
#1, done in 0.000064 #2, done in 0.000061
Output for 5.3.17
#1, done in 0.000084 #2, done in 0.000081
Output for 5.3.15
#1, done in 0.000076 #2, done in 0.000060
Output for 5.3.14
#1, done in 0.000054 #2, done in 0.000075
Output for 5.3.13
#1, done in 0.000079 #2, done in 0.000093
Output for 5.3.12
#1, done in 0.000050 #2, done in 0.000061
Output for 5.3.11
#1, done in 0.000072 #2, done in 0.000079
Output for 5.3.10
#1, done in 0.000086 #2, done in 0.000099
Output for 5.3.9
#1, done in 0.000061 #2, done in 0.000060
Output for 5.3.8
#1, done in 0.000063 #2, done in 0.000064
Output for 5.3.7
#1, done in 0.000073 #2, done in 0.000073
Output for 5.3.6
#1, done in 0.000101 #2, done in 0.000092
Output for 5.3.5
#1, done in 0.000051 #2, done in 0.000099
Output for 5.3.4
#1, done in 0.000069 #2, done in 0.000069
Output for 5.3.3
#1, done in 0.000068 #2, done in 0.000066
Output for 5.3.2
#1, done in 0.000082 #2, done in 0.000066
Output for 5.3.1
#1, done in 0.000065 #2, done in 0.000048
Output for 5.3.0
#1, done in 0.000063 #2, done in 0.000062
Output for 5.2.17
#1, done in 0.000089 #2, done in 0.000102
Output for 5.2.16
#1, done in 0.000095 #2, done in 0.000090
Output for 5.2.15
#1, done in 0.000093 #2, done in 0.000090
Output for 5.2.14
#1, done in 0.000103 #2, done in 0.000104
Output for 5.2.13
#1, done in 0.000062 #2, done in 0.000061
Output for 5.2.11
#1, done in 0.000119 #2, done in 0.000117
Output for 5.2.10
#1, done in 0.000112 #2, done in 0.000109
Output for 5.2.9
#1, done in 0.000117 #2, done in 0.000114
Output for 5.2.8
#1, done in 0.000098 #2, done in 0.000084
Output for 5.2.7
#1, done in 0.000097 #2, done in 0.000095
Output for 5.2.6
#1, done in 0.000106 #2, done in 0.000108
Output for 5.2.5
#1, done in 0.000116 #2, done in 0.000130
Output for 5.2.4
#1, done in 0.000104 #2, done in 0.000098
Output for 5.2.3
#1, done in 0.000088 #2, done in 0.000097
Output for 5.2.2
#1, done in 0.000076 #2, done in 0.000071
Output for 5.2.1
#1, done in 0.000088 #2, done in 0.000086
Output for 5.2.0
#1, done in 0.000106 #2, done in 0.000104
Output for 5.1.6
#1, done in 0.000153 #2, done in 0.000149
Output for 5.1.5
#1, done in 0.000132 #2, done in 0.000128
Output for 5.1.4
#1, done in 0.000162 #2, done in 0.000148
Output for 5.1.3
#1, done in 0.000118 #2, done in 0.000118
Output for 5.1.2
#1, done in 0.000104 #2, done in 0.000103
Output for 5.1.1
#1, done in 0.000131 #2, done in 0.000127
Output for 5.1.0
#1, done in 0.000085 #2, done in 0.000092
Output for 5.0.5
#1, done in 0.000338 #2, done in 0.000365
Output for 5.0.4
#1, done in 0.000442 #2, done in 0.000459
Output for 5.0.3
#1, done in 0.000291 #2, done in 0.000230
Output for 5.0.2
#1, done in 0.000219 #2, done in 0.000227
Output for 5.0.1
#1, done in 0.000314 #2, done in 0.000310
Output for 5.0.0
#1, done in 0.000255 #2, done in 0.000251
Output for 4.4.9
#1, done in 0.000315 #2, done in 0.000327
Output for 4.4.8
#1, done in 0.000310 #2, done in 0.000223
Output for 4.4.7
#1, done in 0.000351 #2, done in 0.000333
Output for 4.4.6
#1, done in 0.000353 #2, done in 0.000336
Output for 4.4.5
#1, done in 0.000740 #2, done in 0.000714
Output for 4.4.4
#1, done in 0.000328 #2, done in 0.000334
Output for 4.4.3
#1, done in 0.000362 #2, done in 0.000341
Output for 4.4.2
#1, done in 0.000377 #2, done in 0.000353
Output for 4.4.1
#1, done in 0.000301 #2, done in 0.000285
Output for 4.4.0
#1, done in 0.000336 #2, done in 0.000336
Output for 4.3.11
#1, done in 0.000315 #2, done in 0.000305
Output for 4.3.10
#1, done in 0.000344 #2, done in 0.000306
Output for 4.3.9
#1, done in 0.000315 #2, done in 0.000328
Output for 4.3.8
#1, done in 0.000332 #2, done in 0.000341
Output for 4.3.7
#1, done in 0.000285 #2, done in 0.000284
Output for 4.3.6
#1, done in 0.000407 #2, done in 0.000384
Output for 4.3.5
#1, done in 0.000360 #2, done in 0.000386
Output for 4.3.4
#1, done in 0.000328 #2, done in 0.000313
Output for 4.3.3
#1, done in 0.000242 #2, done in 0.000214
Output for 4.3.2
#1, done in 0.000219 #2, done in 0.000205
Output for 4.3.1
#1, done in 0.000323 #2, done in 0.000306
Output for 4.3.0
#1, done in 0.000170 #2, done in 0.000174