3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function chrono() { $temps = explode(' ', microtime()); return $temps[0]+$temps[1]; } $debut = chrono(); for($i=0;$i<1000;$i++) { $p = sha1('toto'); } echo'<hr>'; echo round(chrono()-$debut,10);
Output for 5.4.30, 7.1.0
<hr>0.0005140305
Output for 7.0.14
<hr>0.0004961491
Output for 7.0.7
<hr>0.0004808903
Output for 7.0.6
<hr>0.0004410744
Output for 7.0.5
<hr>0.000464201
Output for 7.0.4
<hr>0.0004580021
Output for 7.0.3
<hr>0.0004489422
Output for 7.0.2
<hr>0.0004200935
Output for 7.0.1
<hr>0.0004498959
Output for 7.0.0
<hr>0.0004742146
Output for 5.6.28
<hr>0.0006568432
Output for 5.6.22
<hr>0.000467062
Output for 5.3.14, 5.4.38, 5.6.14, 5.6.21
<hr>0.0005791187
Output for 5.6.20
<hr>0.0006079674
Output for 5.6.19
<hr>0.0005609989
Output for 5.6.18
<hr>0.0007688999
Output for 5.6.17
<hr>0.0004789829
Output for 5.5.6, 5.6.16
<hr>0.0005979538
Output for 5.6.15
<hr>0.0005180836
Output for 5.6.13
<hr>0.0004987717
Output for 5.6.12
<hr>0.0005781651
Output for 5.6.11
<hr>0.0006117821
Output for 5.6.10
<hr>0.0005431175
Output for 5.6.9
<hr>0.0005011559
Output for 5.6.8
<hr>0.0005521774
Output for 5.6.7
<hr>0.0003819466
Output for 5.6.6
<hr>0.0005772114
Output for 5.4.3, 5.6.5
<hr>0.0003640652
Output for 5.6.4
<hr>0.0004620552
Output for 5.5.32, 5.6.3
<hr>0.0005600452
Output for 5.6.2
<hr>0.0004999638
Output for 5.6.1
<hr>0.0005748272
Output for 5.4.0, 5.5.9, 5.6.0
<hr>0.0005950928
Output for 5.4.41, 5.5.36
<hr>0.0005588531
Output for 5.5.35
<hr>0.0005729198
Output for 5.5.34
<hr>0.0006220341
Output for 5.4.42, 5.5.33
<hr>0.0006089211
Output for 5.4.17, 5.5.31
<hr>0.0005340576
Output for 5.5.30
<hr>0.0005328655
Output for 5.2.12, 5.4.35, 5.5.29
<hr>0.0005879402
Output for 5.5.28
<hr>0.0004739761
Output for 5.5.27
<hr>0.0004761219
Output for 5.5.26
<hr>0.0005698204
Output for 5.5.25
<hr>0.0003991127
Output for 5.5.24
<hr>0.0005788803
Output for 5.5.23
<hr>0.0006518364
Output for 5.5.16, 5.5.22
<hr>0.0005819798
Output for 5.4.43, 5.5.21
<hr>0.0005888939
Output for 5.5.20
<hr>0.0005111694
Output for 5.5.15, 5.5.19
<hr>0.0005500317
Output for 5.5.18
<hr>0.0005409718
Output for 5.4.21, 5.5.14
<hr>0.0005149841
Output for 5.5.13
<hr>0.0005669594
Output for 5.5.12
<hr>0.000579834
Output for 5.5.11
<hr>0.0005841255
Output for 5.5.10
<hr>0.0007479191
Output for 5.5.8
<hr>0.0006120205
Output for 5.5.7
<hr>0.0005829334
Output for 5.4.18, 5.5.5
<hr>0.0005810261
Output for 5.4.2, 5.5.4
<hr>0.000590086
Output for 5.5.3
<hr>0.0005068779
Output for 5.5.2
<hr>0.0005400181
Output for 5.5.1
<hr>0.0005540848
Output for 5.5.0
<hr>0.0005528927
Output for 5.4.45
<hr>0.0006039143
Output for 5.4.44
<hr>0.0005838871
Output for 5.4.40
<hr>0.000576973
Output for 5.4.39
<hr>0.0004110336
Output for 5.4.37
<hr>0.0005919933
Output for 5.4.36
<hr>0.0005249977
Output for 5.4.34
<hr>0.0005130768
Output for 5.4.19, 5.4.32
<hr>0.0005559921
Output for 5.4.31
<hr>0.0006020069
Output for 5.4.29
<hr>0.0006279945
Output for 5.4.11, 5.4.16, 5.4.28
<hr>0.0005860329
Output for 5.4.27
<hr>0.0005741119
Output for 5.4.26
<hr>0.0006489754
Output for 5.3.2, 5.4.25
<hr>0.000592947
Output for 5.4.24
<hr>0.0006289482
Output for 5.4.23
<hr>0.0006201267
Output for 5.4.22
<hr>0.0005159378
Output for 5.4.20
<hr>0.0005831718
Output for 5.4.15
<hr>0.0006229877
Output for 5.4.14
<hr>0.0006370544
Output for 5.4.13
<hr>0.000658989
Output for 5.4.12
<hr>0.0005290508
Output for 5.4.10
<hr>0.0005989075
Output for 5.4.9
<hr>0.0005648136
Output for 5.4.8
<hr>0.0005908012
Output for 5.4.7
<hr>0.0005960464
Output for 5.4.6
<hr>0.0005569458
Output for 5.4.5
<hr>0.0006599426
Output for 5.4.4
<hr>0.0006110668
Output for 5.4.1
<hr>0.0005049706
Output for 5.3.29
<hr>0.0007607937
Output for 5.3.28
<hr>0.0007219315
Output for 5.3.27
<hr>0.0009739399
Output for 5.3.26
<hr>0.00096488
Output for 5.3.25
<hr>0.0009689331
Output for 5.3.24
<hr>0.0009639263
Output for 5.3.23
<hr>0.0009710789
Output for 5.3.22
<hr>0.0005350113
Output for 5.3.21
<hr>0.0006771088
Output for 5.3.20
<hr>0.0006449223
Output for 5.3.19
<hr>0.0007820129
Output for 5.3.1, 5.3.18
<hr>0.0006971359
Output for 5.3.17
<hr>0.0007150173
Output for 5.3.16
<hr>0.0006899834
Output for 5.3.15
<hr>0.0006678104
Output for 5.3.13
<hr>0.0005419254
Output for 5.3.12
<hr>0.0007228851
Output for 5.3.11
<hr>0.0008268356
Output for 5.3.10
<hr>0.0007128716
Output for 5.3.9
<hr>0.000715971
Output for 5.3.8
<hr>0.0005187988
Output for 5.3.7
<hr>0.0008149147
Output for 5.3.6
<hr>0.0007650852
Output for 5.3.5
<hr>0.0006730556
Output for 5.3.4
<hr>0.000494957
Output for 5.3.3
<hr>0.0006098747
Output for 5.3.0
<hr>0.0007638931
Output for 5.2.17
<hr>0.0008220673
Output for 5.2.16
<hr>0.0006108284
Output for 5.2.15
<hr>0.0005848408
Output for 5.2.14
<hr>0.000797987
Output for 5.2.13
<hr>0.0008490086
Output for 5.2.11
<hr>0.0006608963
Output for 5.2.10
<hr>0.000772953
Output for 5.2.3, 5.2.9
<hr>0.000754118
Output for 5.2.8
<hr>0.0008471012
Output for 5.2.7
<hr>0.0008780956
Output for 5.2.6
<hr>0.0008070469
Output for 5.2.5
<hr>0.0007610321
Output for 5.2.4
<hr>0.0007519722
Output for 5.2.2
<hr>0.0037329197
Output for 5.2.1
<hr>0.003513813
Output for 5.2.0
<hr>0.0038030148
Output for 5.1.6
<hr>0.0039789677
Output for 5.1.5
<hr>0.0036840439
Output for 5.1.4
<hr>0.0045900345
Output for 5.1.3
<hr>0.0035729408
Output for 5.1.2
<hr>0.0033988953
Output for 5.1.1
<hr>0.0021882057
Output for 5.1.0
<hr>0.0035769939
Output for 5.0.5
<hr>0.0039918423
Output for 5.0.4
<hr>0.0042660236
Output for 5.0.3
<hr>0.0029640198
Output for 5.0.2
<hr>0.0042259693
Output for 5.0.1
<hr>0.0040519238
Output for 5.0.0
<hr>0.0032479763
Output for 4.4.9
<hr>0.0041298866
Output for 4.4.8
<hr>0.0035121441
Output for 4.4.7
<hr>0.0041570663
Output for 4.4.6
<hr>0.0038721561
Output for 4.4.5
<hr>0.0044867992
Output for 4.4.4
<hr>0.0041921139
Output for 4.4.3
<hr>0.0044009686
Output for 4.4.2
<hr>0.0024759769
Output for 4.4.1
<hr>0.0062389374
Output for 4.4.0
<hr>0.0028707981
Output for 4.3.11
<hr>0.0041930676
Output for 4.3.10
<hr>0.0045990944
Output for 4.3.9
<hr>0.0041589737
Output for 4.3.8
<hr>0.0038950443
Output for 4.3.7
<hr>0.0055718422
Output for 4.3.6
<hr>0.0038568974
Output for 4.3.5
<hr>0.0041849613
Output for 4.3.4
<hr>0.003898859
Output for 4.3.3
<hr>0.0044579506
Output for 4.3.2
<hr>0.0045318604
Output for 4.3.1
<hr>0.0033018589
Output for 4.3.0
<hr>0.0041310787