3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a() { return; } function b() { return false; } $start = microtime(true); for ($i = 0; $i<999999; $i++) { a(); } $end = microtime(true); echo "A :".($end-$start)."\n"; $start = microtime(true); for ($i = 0; $i<999999; $i++) { b(); } $end = microtime(true); echo "B :".($end-$start)."\n";
Output for 7.1.0
A :0.018651008605957 B :0.017762184143066
Output for 7.0.14
A :0.032776117324829 B :0.030488967895508
Output for 7.0.6
A :0.031227111816406 B :0.027447938919067
Output for 7.0.5
A :0.025647878646851 B :0.023895978927612
Output for 7.0.4
A :0.020102024078369 B :0.020240783691406
Output for 7.0.3
A :0.020043134689331 B :0.020114183425903
Output for 7.0.2
A :0.020143985748291 B :0.019891977310181
Output for 7.0.1
A :0.019450902938843 B :0.01953911781311
Output for 7.0.0
A :0.020042181015015 B :0.020304203033447
Output for 5.6.28
A :0.12094497680664 B :0.11038613319397
Output for 5.6.21
A :0.071046113967896 B :0.061838865280151
Output for 5.6.20
A :0.085478067398071 B :0.064284801483154
Output for 5.6.19
A :0.057894945144653 B :0.055154085159302
Output for 5.6.18
A :0.070106983184814 B :0.062960863113403
Output for 5.6.17
A :0.056533098220825 B :0.05609393119812
Output for 5.6.16
A :0.057460069656372 B :0.057163000106812
Output for 5.6.15
A :0.056571960449219 B :0.05629301071167
Output for 5.6.14
A :0.05365514755249 B :0.054381132125854
Output for 5.6.13
A :0.055439949035645 B :0.055269002914429
Output for 5.6.12
A :0.055572986602783 B :0.054962873458862
Output for 5.6.11
A :0.069545984268188 B :0.057260036468506
Output for 5.6.10
A :0.055400133132935 B :0.05530309677124
Output for 5.6.9
A :0.075258016586304 B :0.059648990631104
Output for 5.6.8
A :0.05449390411377 B :0.05481219291687
Output for 5.6.7
A :0.053454160690308 B :0.052904844284058
Output for 5.6.6
A :0.054188966751099 B :0.054274797439575
Output for 5.6.5
A :0.059443950653076 B :0.063332080841064
Output for 5.6.4
A :0.053318977355957 B :0.053031921386719
Output for 5.6.3
A :0.063961029052734 B :0.063765048980713
Output for 5.6.2
A :0.055819034576416 B :0.055263996124268
Output for 5.6.1
A :0.054378032684326 B :0.055238962173462
Output for 5.6.0
A :0.0538649559021 B :0.054143905639648
Output for 5.5.35
A :0.053597927093506 B :0.053573131561279
Output for 5.5.34
A :0.057201862335205 B :0.058000087738037
Output for 5.5.33
A :0.053913116455078 B :0.053979158401489
Output for 5.5.32
A :0.053577899932861 B :0.053733825683594
Output for 5.5.31
A :0.053719043731689 B :0.053957939147949
Output for 5.5.30
A :0.066899061203003 B :0.056153774261475
Output for 5.5.29
A :0.05990195274353 B :0.060065984725952
Output for 5.5.28
A :0.073188066482544 B :0.05817985534668
Output for 5.5.27
A :0.06742000579834 B :0.054246187210083
Output for 5.5.26
A :0.053676843643188 B :0.053812026977539
Output for 5.5.25
A :0.055702924728394 B :0.054388999938965
Output for 5.5.24
A :0.054413795471191 B :0.054471969604492
Output for 5.5.23
A :0.052412986755371 B :0.051424980163574
Output for 5.5.22
A :0.053229093551636 B :0.053332090377808
Output for 5.5.21
A :0.054260969161987 B :0.053293943405151
Output for 5.5.20
A :0.051928997039795 B :0.051928997039795
Output for 5.5.19
A :0.053483009338379 B :0.053524017333984
Output for 5.5.18
A :0.053827047348022 B :0.052190065383911
Output for 5.5.16
A :0.052309036254883 B :0.052304983139038
Output for 5.5.15
A :0.053062200546265 B :0.053044080734253
Output for 5.5.14
A :0.05964183807373 B :0.059669971466064
Output for 5.5.13
A :0.05443000793457 B :0.054632186889648
Output for 5.5.12
A :0.054340124130249 B :0.054411888122559
Output for 5.5.11
A :0.054160833358765 B :0.053807973861694
Output for 5.5.10
A :0.054970026016235 B :0.054547071456909
Output for 5.5.9
A :0.056314945220947 B :0.056023120880127
Output for 5.5.8
A :0.053429126739502 B :0.054256916046143
Output for 5.5.7
A :0.053188800811768 B :0.053961038589478
Output for 5.5.6
A :0.068464040756226 B :0.071179866790771
Output for 5.5.5
A :0.05492091178894 B :0.054642200469971
Output for 5.5.4
A :0.053658008575439 B :0.053683996200562
Output for 5.5.3
A :0.053632020950317 B :0.053723096847534
Output for 5.5.2
A :0.053405046463013 B :0.055384159088135
Output for 5.5.1
A :0.053658008575439 B :0.0538010597229
Output for 5.5.0
A :0.053149938583374 B :0.052902936935425
Output for 5.4.45
A :0.052714109420776 B :0.052520990371704
Output for 5.4.44
A :0.06929087638855 B :0.053083896636963
Output for 5.4.43
A :0.05385684967041 B :0.053098917007446
Output for 5.4.42
A :0.05295991897583 B :0.052924156188965
Output for 5.4.41
A :0.053280830383301 B :0.053284168243408
Output for 5.4.40
A :0.052711009979248 B :0.052634954452515
Output for 5.4.39
A :0.05071496963501 B :0.050845861434937
Output for 5.4.38
A :0.053141117095947 B :0.053088903427124
Output for 5.4.37
A :0.052826881408691 B :0.052931070327759
Output for 5.4.36
A :0.063796043395996 B :0.052052974700928
Output for 5.4.35
A :0.051139831542969 B :0.051192998886108
Output for 5.4.34
A :0.050989151000977 B :0.051704168319702
Output for 5.4.32
A :0.053184032440186 B :0.052216053009033
Output for 5.4.31
A :0.052047967910767 B :0.054636001586914
Output for 5.4.30
A :0.053053140640259 B :0.052941083908081
Output for 5.4.29
A :0.052537202835083 B :0.052788019180298
Output for 5.4.28
A :0.05289888381958 B :0.05296802520752
Output for 5.4.27
A :0.052884101867676 B :0.053161144256592
Output for 5.4.26
A :0.053874015808105 B :0.053874969482422
Output for 5.4.25
A :0.053986072540283 B :0.053902864456177
Output for 5.4.24
A :0.053408145904541 B :0.052793025970459
Output for 5.4.23
A :0.052985906600952 B :0.052937030792236
Output for 5.4.22
A :0.052627086639404 B :0.052587985992432
Output for 5.4.21
A :0.052369832992554 B :0.052303075790405
Output for 5.4.20
A :0.053755044937134 B :0.054098129272461
Output for 5.4.19
A :0.0535728931427 B :0.05337381362915
Output for 5.4.18
A :0.0517418384552 B :0.051724910736084
Output for 5.4.17
A :0.052136182785034 B :0.051139831542969
Output for 5.4.16
A :0.053104877471924 B :0.053153991699219
Output for 5.4.15
A :0.052964210510254 B :0.052914142608643
Output for 5.4.14
A :0.051358938217163 B :0.052056074142456
Output for 5.4.13
A :0.05292010307312 B :0.052637100219727
Output for 5.4.12
A :0.050870180130005 B :0.051302909851074
Output for 5.4.11
A :0.053538799285889 B :0.052073955535889
Output for 5.4.10
A :0.053040027618408 B :0.053130865097046
Output for 5.4.9
A :0.053169012069702 B :0.05311393737793
Output for 5.4.8
A :0.052854061126709 B :0.052837133407593
Output for 5.4.7
A :0.053380012512207 B :0.053544998168945
Output for 5.4.6
A :0.052780151367188 B :0.052791833877563
Output for 5.4.5
A :0.053055047988892 B :0.053363084793091
Output for 5.4.4
A :0.053135871887207 B :0.053222894668579
Output for 5.4.3
A :0.055917978286743 B :0.055159091949463
Output for 5.4.2
A :0.076828956604004 B :0.059180021286011
Output for 5.4.1
A :0.074146032333374 B :0.058207035064697
Output for 5.4.0
A :0.052577972412109 B :0.052383184432983
Output for 5.3.29
A :0.11804699897766 B :0.1192409992218
Output for 5.3.28
A :0.11748003959656 B :0.11743903160095
Output for 5.3.27
A :0.11746001243591 B :0.11514711380005
Output for 5.3.26
A :0.11842894554138 B :0.11997890472412
Output for 5.3.25
A :0.11669898033142 B :0.11771202087402
Output for 5.3.24
A :0.11764788627625 B :0.11858487129211
Output for 5.3.23
A :0.11780500411987 B :0.11760902404785
Output for 5.3.22
A :0.11464190483093 B :0.11450886726379
Output for 5.3.21
A :0.11428308486938 B :0.11390113830566
Output for 5.3.20
A :0.11844801902771 B :0.11870312690735
Output for 5.3.19
A :0.11995887756348 B :0.11963987350464
Output for 5.3.18
A :0.11867189407349 B :0.11632108688354
Output for 5.3.17
A :0.11820888519287 B :0.11712980270386
Output for 5.3.16
A :0.1245539188385 B :0.12324786186218
Output for 5.3.15
A :0.11818408966064 B :0.11816692352295
Output for 5.3.14
A :0.11810803413391 B :0.11805891990662
Output for 5.3.13
A :0.11920595169067 B :0.12034893035889
Output for 5.3.12
A :0.13634395599365 B :0.13638710975647
Output for 5.3.11
A :0.12391209602356 B :0.11988091468811
Output for 5.3.10
A :0.11879897117615 B :0.1189649105072
Output for 5.3.9
A :0.11931300163269 B :0.11911511421204
Output for 5.3.8
A :0.1197350025177 B :0.119295835495
Output for 5.3.7
A :0.12302803993225 B :0.12091088294983
Output for 5.3.6
A :0.11496305465698 B :0.11494398117065
Output for 5.3.5
A :0.11628603935242 B :0.1142361164093
Output for 5.3.4
A :0.11756110191345 B :0.11546993255615
Output for 5.3.3
A :0.11811494827271 B :0.1177179813385
Output for 5.3.2
A :0.13568592071533 B :0.12280607223511
Output for 5.3.1
A :0.11882781982422 B :0.11690402030945
Output for 5.3.0
A :0.11424112319946 B :0.11478996276855
Output for 5.2.17
A :0.13987898826599 B :0.14022207260132
Output for 5.2.16
A :0.14723801612854 B :0.14968323707581
Output for 5.2.15
A :0.14654207229614 B :0.15252494812012
Output for 5.2.14
A :0.16042804718018 B :0.1478579044342
Output for 5.2.13
A :0.16460204124451 B :0.15112400054932
Output for 5.2.12
A :0.17652988433838 B :0.14548492431641
Output for 5.2.11
A :0.19283390045166 B :0.18261480331421
Output for 5.2.10
A :0.14260697364807 B :0.14270401000977
Output for 5.2.9
A :0.15407991409302 B :0.14300394058228
Output for 5.2.8
A :0.14687204360962 B :0.14682102203369
Output for 5.2.7
A :0.14482498168945 B :0.14498090744019
Output for 5.2.6
A :0.18722891807556 B :0.18807196617126
Output for 5.2.5
A :0.14276719093323 B :0.14037299156189
Output for 5.2.4
A :0.15797805786133 B :0.14827489852905
Output for 5.2.3
A :0.15425801277161 B :0.14539003372192
Output for 5.2.2
A :0.15523409843445 B :0.14551901817322
Output for 5.2.1
A :0.15941500663757 B :0.14448189735413
Output for 5.2.0
A :0.1521270275116 B :0.14897704124451
Output for 5.1.6
A :0.15959692001343 B :0.14542484283447
Output for 5.1.5
A :0.17356300354004 B :0.15051913261414
Output for 5.1.4
A :0.15152597427368 B :0.15192198753357
Output for 5.1.3
A :0.14755916595459 B :0.14931893348694
Output for 5.1.2
A :0.16798114776611 B :0.21678495407104
Output for 5.1.1
A :0.17420506477356 B :0.22334003448486
Output for 5.1.0
A :0.14559412002563 B :0.21652603149414
Output for 5.0.5
A :0.22645711898804 B :0.24934196472168
Output for 5.0.4
A :0.23504781723022 B :0.24227595329285
Output for 5.0.3
A :0.2208399772644 B :0.22925090789795
Output for 5.0.2
A :0.23516917228699 B :0.23317790031433
Output for 5.0.1
A :0.22625589370728 B :0.23607611656189
Output for 5.0.0
A :0.2345290184021 B :0.24293804168701
Output for 4.4.9
A :0.203635 B :-0.781787
Output for 4.4.8
A :-0.793642 B :0.22032
Output for 4.4.7
A :0.24221 B :0.226579
Output for 4.4.6
A :0.221098 B :0.227277
Output for 4.4.5
A :0.251349 B :-0.776205
Output for 4.4.4
A :-0.750313 B :0.22622
Output for 4.4.3
A :0.257837 B :0.227002
Output for 4.4.2
A :0.249619 B :0.224091
Output for 4.4.1
A :-0.763302 B :0.225031
Output for 4.4.0
A :0.237572 B :0.2272
Output for 4.3.11
A :0.238832 B :0.217757
Output for 4.3.10
A :0.20582 B :-0.778039
Output for 4.3.9
A :-0.779112 B :0.220339
Output for 4.3.8
A :-0.764197 B :0.231277
Output for 4.3.7
A :0.238534 B :0.222795
Output for 4.3.6
A :0.215911 B :0.221793
Output for 4.3.5
A :0.245809 B :-0.776288
Output for 4.3.4
A :0.2433 B :0.220141
Output for 4.3.3
A :-0.760789 B :0.218417
Output for 4.3.2
A :0.239595 B :-0.780591
Output for 4.3.1
A :0.23359 B :0.287766
Output for 4.3.0
A :-0.755787 B :0.215228