3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a() { return; } function b() { return true; } $start = microtime(true); for ($i = 0; $i<9999; $i++) { a(); } $end = microtime(true); echo "A :".($end-$start)."\n"; $start = microtime(true); for ($i = 0; $i<9999; $i++) { b(); } $end = microtime(true); echo "B :".($end-$start)."\n";
Output for 7.1.0
A :0.00029492378234863 B :0.00029397010803223
Output for 7.0.14
A :0.00034809112548828 B :0.00036120414733887
Output for 7.0.6
A :0.00033903121948242 B :0.00033903121948242
Output for 7.0.5
A :0.00023317337036133 B :0.00024890899658203
Output for 7.0.4
A :0.00030112266540527 B :0.00030207633972168
Output for 7.0.3
A :0.00031709671020508 B :0.00031495094299316
Output for 7.0.2
A :0.00033307075500488 B :0.00034189224243164
Output for 7.0.1
A :0.00053811073303223 B :0.00053191184997559
Output for 7.0.0
A :0.00035405158996582 B :0.00040102005004883
Output for hhvm-3.12.0
A :0.00083398818969727 B :0.00083184242248535
Output for hhvm-3.10.0
A :0.0010330677032471 B :0.0012340545654297
Output for 5.6.28
A :0.0011229515075684 B :0.0011360645294189
Output for 5.6.21
A :0.00079107284545898 B :0.00079798698425293
Output for 5.6.20
A :0.00086593627929688 B :0.00088310241699219
Output for 5.6.19
A :0.00080418586730957 B :0.00080990791320801
Output for 5.6.18
A :0.0009150505065918 B :0.000946044921875
Output for 5.6.17
A :0.00090909004211426 B :0.00090599060058594
Output for 5.6.16
A :0.00080394744873047 B :0.00078105926513672
Output for 5.6.15
A :0.00088286399841309 B :0.00090193748474121
Output for 5.6.14
A :0.00084590911865234 B :0.00085210800170898
Output for 5.6.13
A :0.00087809562683105 B :0.00087308883666992
Output for 5.6.12
A :0.00086307525634766 B :0.0009310245513916
Output for 5.6.11
A :0.00089192390441895 B :0.00087308883666992
Output for 5.6.10
A :0.0010590553283691 B :0.0010600090026855
Output for 5.6.9
A :0.00089097023010254 B :0.0008690357208252
Output for 5.6.8
A :0.00091290473937988 B :0.00093889236450195
Output for 5.6.7
A :0.00084090232849121 B :0.00080990791320801
Output for 5.6.6
A :0.00091195106506348 B :0.00091099739074707
Output for 5.6.5
A :0.00085687637329102 B :0.00086092948913574
Output for 5.6.4
A :0.00086784362792969 B :0.00088691711425781
Output for 5.6.3
A :0.00093913078308105 B :0.00095009803771973
Output for 5.6.2
A :0.00085783004760742 B :0.00085306167602539
Output for 5.6.1
A :0.00096988677978516 B :0.00095415115356445
Output for 5.6.0
A :0.00085902214050293 B :0.00087094306945801
Output for 5.5.35
A :0.00080585479736328 B :0.00082302093505859
Output for 5.5.34
A :0.00085306167602539 B :0.00081300735473633
Output for 5.5.33
A :0.00075221061706543 B :0.00074505805969238
Output for 5.5.32
A :0.00082492828369141 B :0.00082492828369141
Output for 5.5.31
A :0.00091004371643066 B :0.00095701217651367
Output for 5.5.30
A :0.00089287757873535 B :0.0008089542388916
Output for 5.5.29
A :0.00088691711425781 B :0.00089097023010254
Output for 5.5.28
A :0.00089097023010254 B :0.00088596343994141
Output for 5.5.27
A :0.00082278251647949 B :0.00082993507385254
Output for 5.5.26
A :0.00085997581481934 B :0.0008690357208252
Output for 5.5.25
A :0.00081205368041992 B :0.00080299377441406
Output for 5.5.24
A :0.00070095062255859 B :0.00065302848815918
Output for 5.5.23
A :0.00084400177001953 B :0.0011298656463623
Output for 5.5.22
A :0.00083208084106445 B :0.00082898139953613
Output for 5.5.21
A :0.000762939453125 B :0.00076198577880859
Output for 5.5.20
A :0.00088214874267578 B :0.00091290473937988
Output for 5.5.19
A :0.00093793869018555 B :0.00093388557434082
Output for 5.5.18
A :0.00094389915466309 B :0.00084209442138672
Output for 5.5.16
A :0.00090909004211426 B :0.00089192390441895
Output for 5.5.15
A :0.00089502334594727 B :0.00095009803771973
Output for 5.5.14
A :0.00088596343994141 B :0.00089192390441895
Output for 5.5.13
A :0.00087785720825195 B :0.00088191032409668
Output for 5.5.12
A :0.00082921981811523 B :0.00081491470336914
Output for 5.5.11
A :0.00053596496582031 B :0.00054192543029785
Output for 5.5.10
A :0.00054621696472168 B :0.00053095817565918
Output for 5.5.9
A :0.00056695938110352 B :0.00059008598327637
Output for 5.5.8
A :0.00055122375488281 B :0.0005340576171875
Output for 5.5.7
A :0.00058102607727051 B :0.00054407119750977
Output for 5.5.6
A :0.00047087669372559 B :0.00045394897460938
Output for 5.5.5
A :0.00053000450134277 B :0.00053310394287109
Output for 5.5.4
A :0.00046110153198242 B :0.0004580020904541
Output for 5.5.3
A :0.00046586990356445 B :0.00047397613525391
Output for 5.5.2
A :0.00072717666625977 B :0.00072813034057617
Output for 5.5.1
A :0.00045490264892578 B :0.00044894218444824
Output for 5.5.0
A :0.00069689750671387 B :0.00047087669372559
Output for 5.4.45
A :0.00094008445739746 B :0.0009150505065918
Output for 5.4.44
A :0.00087308883666992 B :0.00087404251098633
Output for 5.4.43
A :0.0009160041809082 B :0.00088381767272949
Output for 5.4.42
A :0.00087499618530273 B :0.00087213516235352
Output for 5.4.41
A :0.00094103813171387 B :0.00096392631530762
Output for 5.4.40
A :0.00079083442687988 B :0.00080394744873047
Output for 5.4.39
A :0.00068020820617676 B :0.00069904327392578
Output for 5.4.38
A :0.0008699893951416 B :0.00087308883666992
Output for 5.4.37
A :0.00087904930114746 B :0.00094103813171387
Output for 5.4.36
A :0.00087714195251465 B :0.00084090232849121
Output for 5.4.35
A :0.00091290473937988 B :0.00090312957763672
Output for 5.4.34
A :0.00077414512634277 B :0.0008089542388916
Output for 5.4.32
A :0.00077390670776367 B :0.00078701972961426
Output for 5.4.31
A :0.00082206726074219 B :0.00078010559082031
Output for 5.4.30
A :0.00072693824768066 B :0.00072407722473145
Output for 5.4.29
A :0.00087189674377441 B :0.0008690357208252
Output for 5.4.28
A :0.00083708763122559 B :0.00082302093505859
Output for 5.4.27
A :0.00060510635375977 B :0.00054407119750977
Output for 5.4.26
A :0.00052690505981445 B :0.00052499771118164
Output for 5.4.25
A :0.00072693824768066 B :0.00072312355041504
Output for 5.4.22, 5.4.24
A :0.00053000450134277 B :0.00052809715270996
Output for 5.4.23
A :0.00047492980957031 B :0.00045490264892578
Output for 5.4.21
A :0.00079011917114258 B :0.00070881843566895
Output for 5.4.20
A :0.00083088874816895 B :0.00083589553833008
Output for 5.4.19
A :0.00091195106506348 B :0.0009000301361084
Output for 5.4.18
A :0.00045013427734375 B :0.00044012069702148
Output for 5.4.17
A :0.00043678283691406 B :0.00043416023254395
Output for 5.4.16
A :0.0008540153503418 B :0.00084495544433594
Output for 5.4.15
A :0.00047802925109863 B :0.00052380561828613
Output for 5.4.14
A :0.00050210952758789 B :0.00046110153198242
Output for 5.4.13
A :0.00043296813964844 B :0.00043010711669922
Output for 5.4.12
A :0.00043201446533203 B :0.00043892860412598
Output for 5.4.11
A :0.00043702125549316 B :0.00043582916259766
Output for 5.4.10
A :0.00066184997558594 B :0.00046396255493164
Output for 5.4.9
A :0.0007779598236084 B :0.00079488754272461
Output for 5.4.8
A :0.00043511390686035 B :0.00043606758117676
Output for 5.4.7
A :0.00083303451538086 B :0.00083589553833008
Output for 5.4.6
A :0.00087094306945801 B :0.00088286399841309
Output for 5.4.5
A :0.00079894065856934 B :0.00073504447937012
Output for 5.4.4
A :0.00089216232299805 B :0.00094819068908691
Output for 5.4.3
A :0.00088214874267578 B :0.00088286399841309
Output for 5.4.2
A :0.00095081329345703 B :0.0010950565338135
Output for 5.4.1
A :0.00091791152954102 B :0.00086712837219238
Output for 5.4.0
A :0.00068402290344238 B :0.00067591667175293
Output for 5.3.29
A :0.0017130374908447 B :0.0016930103302002
Output for 5.3.28
A :0.0012362003326416 B :0.0011568069458008
Output for 5.3.27
A :0.00096797943115234 B :0.00097393989562988
Output for 5.3.26
A :0.0010349750518799 B :0.0010230541229248
Output for 5.3.25
A :0.00095987319946289 B :0.00096702575683594
Output for 5.3.24
A :0.00097298622131348 B :0.0009760856628418
Output for 5.3.23
A :0.0010890960693359 B :0.0010571479797363
Output for 5.3.22
A :0.0009760856628418 B :0.00097107887268066
Output for 5.3.21
A :0.0009768009185791 B :0.0009758472442627
Output for 5.3.20
A :0.0009760856628418 B :0.00098609924316406
Output for 5.3.19
A :0.0014848709106445 B :0.0014760494232178
Output for 5.3.18
A :0.00098204612731934 B :0.00097799301147461
Output for 5.3.17
A :0.00148606300354 B :0.0014998912811279
Output for 5.3.16
A :0.0015408992767334 B :0.0015430450439453
Output for 5.3.15
A :0.0015618801116943 B :0.001492977142334
Output for 5.3.14
A :0.0019619464874268 B :0.0019879341125488
Output for 5.3.13
A :0.0020549297332764 B :0.002032995223999
Output for 5.3.12
A :0.0019791126251221 B :0.0019791126251221
Output for 5.3.11
A :0.0016419887542725 B :0.0017209053039551
Output for 5.3.10
A :0.0018191337585449 B :0.0017900466918945
Output for 5.3.9
A :0.0020339488983154 B :0.0021169185638428
Output for 5.3.8
A :0.0020110607147217 B :0.0020120143890381
Output for 5.3.7
A :0.0018370151519775 B :0.0019199848175049
Output for 5.3.6
A :0.0018148422241211 B :0.0018091201782227
Output for 5.3.5
A :0.0020120143890381 B :0.001978874206543
Output for 5.3.4
A :0.0019950866699219 B :0.0019199848175049
Output for 5.3.3
A :0.0020458698272705 B :0.0021109580993652
Output for 5.3.2
A :0.0020349025726318 B :0.0020668506622314
Output for 5.3.1
A :0.0018649101257324 B :0.0018839836120605
Output for 5.3.0
A :0.0019421577453613 B :0.0018959045410156
Output for 5.2.17
A :0.0025780200958252 B :0.0025851726531982
Output for 5.2.16
A :0.0025758743286133 B :0.0027580261230469
Output for 5.2.15
A :0.0016679763793945 B :0.0017480850219727
Output for 5.2.14
A :0.0027370452880859 B :0.0028359889984131
Output for 5.2.13
A :0.0025529861450195 B :0.0024471282958984
Output for 5.2.12
A :0.002687931060791 B :0.0027251243591309
Output for 5.2.11
A :0.002720832824707 B :0.0026979446411133
Output for 5.2.10
A :0.0028810501098633 B :0.0027048587799072
Output for 5.2.9
A :0.0026211738586426 B :0.0028579235076904
Output for 5.2.8
A :0.0028071403503418 B :0.0027530193328857
Output for 5.2.7
A :0.002561092376709 B :0.0025839805603027
Output for 5.2.6
A :0.0025169849395752 B :0.0024800300598145
Output for 5.2.5
A :0.0025651454925537 B :0.0025889873504639
Output for 5.2.4
A :0.0026659965515137 B :0.0026838779449463
Output for 5.2.3
A :0.0025069713592529 B :0.002518892288208
Output for 5.2.2
A :0.0022599697113037 B :0.0022661685943604
Output for 5.2.1
A :0.002518892288208 B :0.0023858547210693
Output for 5.2.0
A :0.0025660991668701 B :0.0025138854980469
Output for 5.1.6
A :0.002856969833374 B :0.0028829574584961
Output for 5.1.5
A :0.0029940605163574 B :0.0028631687164307
Output for 5.1.4
A :0.0027189254760742 B :0.0027029514312744
Output for 5.1.3
A :0.0027148723602295 B :0.0026829242706299
Output for 5.1.2
A :0.0026578903198242 B :0.003882884979248
Output for 5.1.1
A :0.0027749538421631 B :0.0042688846588135
Output for 5.1.0
A :0.0023751258850098 B :0.0034980773925781
Output for 5.0.5
A :0.0039229393005371 B :0.0042970180511475
Output for 5.0.4
A :0.0034880638122559 B :0.0041751861572266
Output for 5.0.3
A :0.0036389827728271 B :0.003957986831665
Output for 5.0.2
A :0.0033059120178223 B :0.0038671493530273
Output for 5.0.1
A :0.0039999485015869 B :0.0045440196990967
Output for 5.0.0
A :0.0038490295410156 B :0.0041921138763428
Output for 4.4.9
A :0.0043030000000001 B :0.004392
Output for 4.4.8
A :0.0048240000000001 B :0.0050800000000001
Output for 4.4.7
A :0.0041140000000001 B :0.004359
Output for 4.4.6
A :0.0043369999999999 B :0.0045860000000001
Output for 4.4.5
A :0.003671 B :0.003903
Output for 4.4.4
A :0.004506 B :0.0041960000000001
Output for 4.4.3
A :0.004515 B :0.004641
Output for 4.4.2
A :0.00384 B :0.0042489999999999
Output for 4.4.1
A :0.004285 B :0.0044
Output for 4.4.0
A :0.0034670000000001 B :0.003738
Output for 4.3.11
A :0.0041640000000001 B :0.00441
Output for 4.3.10
A :0.00431 B :0.00459
Output for 4.3.9
A :0.003629 B :0.005044
Output for 4.3.8
A :0.003955 B :0.004061
Output for 4.3.7
A :0.004254 B :0.004462
Output for 4.3.6
A :0.004429 B :0.004604
Output for 4.3.5
A :0.004243 B :0.004586
Output for 4.3.4
A :0.0037430000000001 B :0.003906
Output for 4.3.3
A :0.0041870000000001 B :0.0042990000000001
Output for 4.3.2
A :0.0041530000000001 B :0.004585
Output for 4.3.1
A :0.004181 B :0.004201
Output for 4.3.0
A :0.004501 B :0.004692