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<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.00031399726867676 B :0.0003049373626709
Output for 7.0.14
A :0.00036001205444336 B :0.00036716461181641
Output for 7.0.7
A :0.00020194053649902 B :0.00020289421081543
Output for 7.0.6
A :0.00020503997802734 B :0.00020408630371094
Output for 7.0.5
A :0.00018787384033203 B :0.00019192695617676
Output for 7.0.4
A :0.0001671314239502 B :0.00016498565673828
Output for 7.0.3
A :0.00023603439331055 B :0.00027585029602051
Output for 7.0.2
A :0.00018095970153809 B :0.00019192695617676
Output for 7.0.1
A :0.00016403198242188 B :0.00016498565673828
Output for 7.0.0
A :0.00023794174194336 B :0.00023794174194336
Output for 5.6.28
A :0.0011019706726074 B :0.0012140274047852
Output for 5.6.22
A :0.00045299530029297 B :0.00044608116149902
Output for 5.6.21
A :0.00045490264892578 B :0.00045299530029297
Output for 5.6.20
A :0.00047588348388672 B :0.00045204162597656
Output for 5.6.19
A :0.00073504447937012 B :0.00073814392089844
Output for 5.6.18
A :0.00067496299743652 B :0.00065493583679199
Output for 5.6.17
A :0.00071907043457031 B :0.00073409080505371
Output for 5.6.16
A :0.00092792510986328 B :0.00093603134155273
Output for 5.6.15
A :0.00068879127502441 B :0.00072693824768066
Output for 5.6.14
A :0.00091099739074707 B :0.00089216232299805
Output for 5.6.13
A :0.00087594985961914 B :0.00087499618530273
Output for 5.6.12
A :0.00084495544433594 B :0.0010089874267578
Output for 5.6.11
A :0.0009920597076416 B :0.00094103813171387
Output for 5.6.10
A :0.00089788436889648 B :0.00083279609680176
Output for 5.6.9
A :0.0009620189666748 B :0.00098800659179688
Output for 5.6.8
A :0.00093293190002441 B :0.00091695785522461
Output for 5.6.7
A :0.0009610652923584 B :0.001007080078125
Output for 5.6.6
A :0.0009608268737793 B :0.000946044921875
Output for 5.6.5
A :0.0012581348419189 B :0.0010440349578857
Output for 5.6.4
A :0.00081992149353027 B :0.00082302093505859
Output for 5.6.3
A :0.00081706047058105 B :0.00082087516784668
Output for 5.6.2
A :0.00095605850219727 B :0.00095891952514648
Output for 5.6.1
A :0.00094389915466309 B :0.00097894668579102
Output for 5.6.0
A :0.00090694427490234 B :0.00087189674377441
Output for 5.5.36
A :0.0004429817199707 B :0.0004570484161377
Output for 5.5.35
A :0.00044417381286621 B :0.00044584274291992
Output for 5.5.34
A :0.00045609474182129 B :0.00045108795166016
Output for 5.5.33
A :0.00060009956359863 B :0.00044608116149902
Output for 5.5.32
A :0.00077199935913086 B :0.0007481575012207
Output for 5.5.31
A :0.00045418739318848 B :0.00047087669372559
Output for 5.5.30
A :0.00081801414489746 B :0.00079083442687988
Output for 5.5.29
A :0.00093293190002441 B :0.00083303451538086
Output for 5.5.28
A :0.00088620185852051 B :0.00087690353393555
Output for 5.5.27
A :0.0009920597076416 B :0.0010480880737305
Output for 5.5.26
A :0.00078201293945312 B :0.00082898139953613
Output for 5.5.25
A :0.00090694427490234 B :0.00089597702026367
Output for 5.5.24
A :0.00080204010009766 B :0.00081419944763184
Output for 5.5.23
A :0.00089192390441895 B :0.00089192390441895
Output for 5.5.22
A :0.00085186958312988 B :0.00079202651977539
Output for 5.5.21
A :0.00075411796569824 B :0.000701904296875
Output for 5.5.20
A :0.00084805488586426 B :0.00083303451538086
Output for 5.5.19
A :0.00088191032409668 B :0.00087404251098633
Output for 5.5.18
A :0.00084686279296875 B :0.00085020065307617
Output for 5.5.16
A :0.00095200538635254 B :0.00088691711425781
Output for 5.5.15
A :0.00054097175598145 B :0.00053882598876953
Output for 5.5.14
A :0.0010151863098145 B :0.0010800361633301
Output for 5.5.13
A :0.0007779598236084 B :0.00075697898864746
Output for 5.5.12
A :0.00086307525634766 B :0.0008549690246582
Output for 5.5.11
A :0.00076699256896973 B :0.00076699256896973
Output for 5.5.10
A :0.00080108642578125 B :0.00079679489135742
Output for 5.5.9
A :0.00087499618530273 B :0.00088715553283691
Output for 5.5.8
A :0.0008399486541748 B :0.00087594985961914
Output for 5.5.7
A :0.00090312957763672 B :0.00089287757873535
Output for 5.5.6
A :0.00088787078857422 B :0.00090718269348145
Output for 5.5.5
A :0.00096797943115234 B :0.00095105171203613
Output for 5.5.4
A :0.00084114074707031 B :0.00083398818969727
Output for 5.5.3
A :0.00084710121154785 B :0.00084304809570312
Output for 5.5.2
A :0.0011780261993408 B :0.00088810920715332
Output for 5.5.1
A :0.00089406967163086 B :0.00089788436889648
Output for 5.5.0
A :0.00075101852416992 B :0.00077700614929199
Output for 5.4.45
A :0.00086593627929688 B :0.000885009765625
Output for 5.4.44
A :0.00078797340393066 B :0.00086498260498047
Output for 5.4.43
A :0.00090694427490234 B :0.00091886520385742
Output for 5.4.42
A :0.00090694427490234 B :0.0009300708770752
Output for 5.4.41
A :0.00090789794921875 B :0.00089597702026367
Output for 5.4.40
A :0.00087594985961914 B :0.00085306167602539
Output for 5.4.39
A :0.00067591667175293 B :0.00066685676574707
Output for 5.4.38
A :0.00070786476135254 B :0.00069689750671387
Output for 5.4.37
A :0.0008699893951416 B :0.00085687637329102
Output for 5.4.36
A :0.00084185600280762 B :0.00086188316345215
Output for 5.4.35
A :0.00086498260498047 B :0.00091695785522461
Output for 5.4.34
A :0.00078797340393066 B :0.00079202651977539
Output for 5.4.32
A :0.00093793869018555 B :0.00094699859619141
Output for 5.4.31
A :0.00080609321594238 B :0.00079798698425293
Output for 5.4.30
A :0.00089287757873535 B :0.00088119506835938
Output for 5.4.29
A :0.00092315673828125 B :0.00090694427490234
Output for 5.4.28
A :0.00076889991760254 B :0.00074982643127441
Output for 5.4.27
A :0.00083708763122559 B :0.00086688995361328
Output for 5.4.26
A :0.00091290473937988 B :0.00085306167602539
Output for 5.4.25
A :0.0010459423065186 B :0.0009458065032959
Output for 5.4.24
A :0.00086688995361328 B :0.00090694427490234
Output for 5.4.23
A :0.00087499618530273 B :0.0009148120880127
Output for 5.4.22
A :0.00085806846618652 B :0.000885009765625
Output for 5.4.21
A :0.00088000297546387 B :0.00086593627929688
Output for 5.4.20
A :0.00075697898864746 B :0.00075006484985352
Output for 5.4.19
A :0.00083589553833008 B :0.00084805488586426
Output for 5.4.18
A :0.00084185600280762 B :0.00085282325744629
Output for 5.4.17
A :0.00084495544433594 B :0.00083494186401367
Output for 5.4.16
A :0.00079607963562012 B :0.00080680847167969
Output for 5.4.15
A :0.00091695785522461 B :0.0009160041809082
Output for 5.4.14
A :0.00085306167602539 B :0.00085592269897461
Output for 5.4.13
A :0.0007021427154541 B :0.00068807601928711
Output for 5.4.12
A :0.00091409683227539 B :0.00090909004211426
Output for 5.4.11
A :0.00099611282348633 B :0.000946044921875
Output for 5.4.10
A :0.00075888633728027 B :0.00078105926513672
Output for 5.4.9
A :0.00092196464538574 B :0.00098180770874023
Output for 5.4.8
A :0.00058484077453613 B :0.00061607360839844
Output for 5.4.7
A :0.00096392631530762 B :0.0010149478912354
Output for 5.4.6
A :0.00089597702026367 B :0.0008690357208252
Output for 5.4.5
A :0.00083613395690918 B :0.00087594985961914
Output for 5.4.4
A :0.00098991394042969 B :0.0010099411010742
Output for 5.4.3
A :0.00097203254699707 B :0.0010261535644531
Output for 5.4.2
A :0.00097298622131348 B :0.00091004371643066
Output for 5.4.1
A :0.0008091926574707 B :0.0008089542388916
Output for 5.4.0
A :0.0007939338684082 B :0.00076889991760254
Output for 5.3.29
A :0.0019659996032715 B :0.0019409656524658
Output for 5.3.28
A :0.0018730163574219 B :0.0019857883453369
Output for 5.3.27
A :0.0019359588623047 B :0.001896858215332
Output for 5.3.26
A :0.0018939971923828 B :0.0019338130950928
Output for 5.3.25
A :0.0019838809967041 B :0.001939058303833
Output for 5.3.24
A :0.0019512176513672 B :0.0019731521606445
Output for 5.3.23
A :0.0020949840545654 B :0.0019769668579102
Output for 5.3.22
A :0.001924991607666 B :0.0018601417541504
Output for 5.3.21
A :0.0014958381652832 B :0.0014398097991943
Output for 5.3.20
A :0.0022740364074707 B :0.0022439956665039
Output for 5.3.19
A :0.0019168853759766 B :0.0019760131835938
Output for 5.3.18
A :0.0019679069519043 B :0.0019569396972656
Output for 5.3.17
A :0.0018949508666992 B :0.0019638538360596
Output for 5.3.16
A :0.0020051002502441 B :0.0017368793487549
Output for 5.3.15
A :0.0021271705627441 B :0.0019948482513428
Output for 5.3.14
A :0.0019528865814209 B :0.001943826675415
Output for 5.3.13
A :0.0019838809967041 B :0.002007007598877
Output for 5.3.12
A :0.0018110275268555 B :0.0018310546875
Output for 5.3.11
A :0.0018970966339111 B :0.0019240379333496
Output for 5.3.10
A :0.0019822120666504 B :0.0019559860229492
Output for 5.3.9
A :0.0019419193267822 B :0.001943826675415
Output for 5.3.8
A :0.001939058303833 B :0.0019550323486328
Output for 5.3.7
A :0.0019400119781494 B :0.0019619464874268
Output for 5.3.6
A :0.0019831657409668 B :0.0019481182098389
Output for 5.3.5
A :0.0021898746490479 B :0.0021419525146484
Output for 5.3.4
A :0.0022149085998535 B :0.0021581649780273
Output for 5.3.3
A :0.0020179748535156 B :0.0020921230316162
Output for 5.3.2
A :0.0017998218536377 B :0.0018339157104492
Output for 5.3.1
A :0.001629114151001 B :0.0016481876373291
Output for 5.3.0
A :0.0019237995147705 B :0.0019559860229492
Output for 5.2.17
A :0.0025210380554199 B :0.0025310516357422
Output for 5.2.16
A :0.0024459362030029 B :0.0024611949920654
Output for 5.2.15
A :0.0026991367340088 B :0.0026671886444092
Output for 5.2.14
A :0.0024261474609375 B :0.0023288726806641
Output for 5.2.13
A :0.0026390552520752 B :0.0024771690368652
Output for 5.2.12
A :0.0023090839385986 B :0.0022859573364258
Output for 5.2.11
A :0.0027508735656738 B :0.0028109550476074
Output for 5.2.10
A :0.0026149749755859 B :0.0025651454925537
Output for 5.2.9
A :0.0026938915252686 B :0.0027279853820801
Output for 5.2.8
A :0.0027329921722412 B :0.0026340484619141
Output for 5.2.7
A :0.0025429725646973 B :0.0027108192443848
Output for 5.2.6
A :0.0025498867034912 B :0.0025649070739746
Output for 5.2.5
A :0.0026700496673584 B :0.0025861263275146
Output for 5.2.4
A :0.0025842189788818 B :0.0027830600738525
Output for 5.2.3
A :0.0022208690643311 B :0.0021350383758545
Output for 5.2.2
A :0.0024850368499756 B :0.0025119781494141
Output for 5.2.1
A :0.0026199817657471 B :0.0026290416717529
Output for 5.2.0
A :0.0025570392608643 B :0.0026369094848633
Output for 5.1.6
A :0.0026519298553467 B :0.0026729106903076
Output for 5.1.5
A :0.0026969909667969 B :0.0024211406707764
Output for 5.1.4
A :0.0029888153076172 B :0.0029139518737793
Output for 5.1.3
A :0.0026760101318359 B :0.0026209354400635
Output for 5.1.2
A :0.0028080940246582 B :0.0037970542907715
Output for 5.1.1
A :0.0036201477050781 B :0.0038139820098877
Output for 5.1.0
A :0.0025219917297363 B :0.0036640167236328
Output for 5.0.5
A :0.0041921138763428 B :0.0045959949493408
Output for 5.0.4
A :0.0046601295471191 B :0.0052618980407715
Output for 5.0.3
A :0.0031168460845947 B :0.0036208629608154
Output for 5.0.2
A :0.0033619403839111 B :0.0046718120574951
Output for 5.0.1
A :0.0043249130249023 B :0.0050628185272217
Output for 5.0.0
A :0.0038769245147705 B :0.004223108291626
Output for 4.4.9
A :0.003804 B :0.00398
Output for 4.4.8
A :0.004518 B :0.004589
Output for 4.4.7
A :0.004285 B :0.004435
Output for 4.4.6
A :0.004316 B :0.004444
Output for 4.4.5
A :0.004325 B :0.004526
Output for 4.4.4
A :0.004377 B :0.004404
Output for 4.4.3
A :0.004165 B :0.004449
Output for 4.4.2
A :0.004294 B :0.004322
Output for 4.4.1
A :0.004033 B :0.004888
Output for 4.4.0
A :0.004076 B :0.004364
Output for 4.3.11
A :0.004291 B :0.004401
Output for 4.3.10
A :0.0040519999999999 B :0.004321
Output for 4.3.9
A :0.00356 B :0.003847
Output for 4.3.8
A :0.004038 B :0.005451
Output for 4.3.7
A :0.002837 B :0.003085
Output for 4.3.6
A :0.003541 B :0.003848
Output for 4.3.5
A :0.002814 B :0.003016
Output for 4.3.4
A :0.002098 B :0.002268
Output for 4.3.3
A :0.004311 B :0.004512
Output for 4.3.2
A :0.00337 B :0.003728
Output for 4.3.1
A :0.002653 B :0.002157
Output for 4.3.0
A :0.003677 B :0.0040819999999999