3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test1() { echo __FUNCTION__; $s = microtime(true); $a = 15484; for ($i = 0; $i < 1000000; $i++) { $b = $a / 2; } return microtime(true) - $s; } function test2() { echo __FUNCTION__; $s = microtime(true); $a = 15484; for ($i = 0; $i < 1000000; $i++) { $b = $a >> 1; } return microtime(true) - $s; } echo test1()."\n"; echo test2()."\n"; echo test1()."\n"; echo test2()."\n";
Output for 7.1.0
test1-0.040956974029541 test2-0.019245862960815 test1-0.044587135314941 test2-0.016212940216064
Output for 7.0.14
test1-0.039712905883789 test2-0.019029855728149 test1-0.048111200332642 test2-0.015785932540894
Output for 7.0.12
test10.053669929504395 test20.030719995498657 test10.041144132614136 test20.025117874145508
Output for 7.0.11
test10.05121898651123 test20.01977801322937 test10.040782928466797 test20.016856908798218
Output for 7.0.10
test10.053170919418335 test20.020787000656128 test10.043097972869873 test20.017430067062378
Output for 7.0.9
test10.049405813217163 test2-0.095703125 test10.040210008621216 test20.016618967056274
Output for 7.0.8
test10.051827192306519 test20.036051988601685 test10.038907766342163 test20.02701210975647
Output for 7.0.7
test10.053115844726562 test20.020447969436646 test10.041810989379883 test20.017106056213379
Output for 7.0.6
test10.053976058959961 test20.021607160568237 test10.042266845703125 test20.017912149429321
Output for 7.0.5
test10.038821935653687 test20.019235849380493 test10.056123018264771 test20.015423059463501
Output for 7.0.4
test10.05357813835144 test20.021522998809814 test10.042459011077881 test20.017319917678833
Output for 7.0.3
test10.052673101425171 test20.020983934402466 test10.042388916015625 test20.017227172851562
Output for 7.0.2
test10.051979064941406 test20.020371913909912 test10.041133880615234 test20.016827821731567
Output for 7.0.1
test10.051548004150391 test20.020395994186401 test10.041337013244629 test20.016964197158813
Output for 7.0.0
test10.053488969802856 test20.020664930343628 test1-0.18443083763123 test20.017183065414429
Output for 5.6.28
test1-0.11324787139893 test2-0.065043926239014 test1-0.075095176696777 test2-0.052505970001221
Output for 5.6.26
test10.072965145111084 test20.036892890930176 test10.052815198898315 test20.029547929763794
Output for 5.6.25
test10.071038961410522 test20.036406993865967 test10.051903963088989 test20.028573036193848
Output for 5.6.24
test10.073019027709961 test20.036354780197144 test10.053578853607178 test20.029513835906982
Output for 5.6.23
test10.073647975921631 test20.036843061447144 test10.052692174911499 test20.02910590171814
Output for 5.6.22
test10.069409132003784 test20.036623001098633 test10.050945997238159 test20.03014612197876
Output for 5.6.21
test10.072500944137573 test20.04889988899231 test10.050474166870117 test20.03973913192749
Output for 5.6.20
test10.070582866668701 test20.036871910095215 test10.051429986953735 test20.029177904129028
Output for 5.6.19
test1-0.0077869892120361 test20.036555051803589 test10.052621126174927 test20.02910590171814
Output for 5.6.18
test1-0.060509920120239 test20.035904884338379 test10.050034999847412 test20.028234004974365
Output for 5.6.17
test10.071290016174316 test20.03722882270813 test10.05173397064209 test20.028820037841797
Output for 5.6.16
test10.068819999694824 test20.035444974899292 test10.050153017044067 test20.02818489074707
Output for 5.6.15
test10.064872026443481 test20.034384965896606 test10.048859119415283 test20.027801036834717
Output for 5.6.14
test10.070493936538696 test2-0.13065600395203 test10.051752090454102 test20.028887987136841
Output for 5.6.13
test10.070348024368286 test20.037041902542114 test10.054230928421021 test20.034075975418091
Output for 5.6.12
test10.071075916290283 test20.038636922836304 test10.054056882858276 test20.030025959014893
Output for 5.6.11
test10.08698296546936 test20.048641204833984 test10.060855865478516 test20.037454128265381
Output for 5.6.10
test10.069724798202515 test20.035940885543823 test10.050588130950928 test20.029337167739868
Output for 5.6.9
test10.066647052764893 test20.036736011505127 test10.050495147705078 test20.029680013656616
Output for 5.6.8
test10.072103023529053 test20.038097143173218 test10.053266048431396 test20.030078887939453
Output for 5.6.7
test10.065045118331909 test20.035430908203125 test10.049875974655151 test20.028954982757568
Output for 5.6.6
test10.071210861206055 test20.037853002548218 test10.052992105484009 test20.029864072799683
Output for 5.6.5
test10.07077693939209 test20.036741971969604 test10.052240133285522 test20.028374910354614
Output for 5.6.4
test10.070005893707275 test20.036698818206787 test10.051977157592773 test20.028870820999146
Output for 5.6.3
test10.071785926818848 test20.038398027420044 test10.052359104156494 test20.036757946014404
Output for 5.6.2
test10.066308975219727 test20.037194013595581 test10.050097942352295 test20.029783010482788
Output for 5.6.1
test1-0.062229871749878 test20.038758993148804 test10.051790952682495 test20.030946016311646
Output for 5.6.0
test10.072564840316772 test20.03701114654541 test10.052454948425293 test20.029971122741699
Output for 5.5.38
test10.060705184936523 test20.033466100692749 test10.047566890716553 test20.02804708480835
Output for 5.5.37
test10.070407152175903 test20.037261009216309 test10.051047086715698 test20.029231071472168
Output for 5.5.36
test10.071096181869507 test20.037610054016113 test10.052345991134644 test20.029863834381104
Output for 5.5.35
test10.072243928909302 test20.039469003677368 test10.052752017974854 test20.030164003372192
Output for 5.5.34
test10.06509804725647 test20.034859895706177 test10.048514127731323 test20.028469800949097
Output for 5.5.33
test10.072631120681763 test20.038204908370972 test10.053008079528809 test20.030670881271362
Output for 5.5.32
test10.065683126449585 test20.04785418510437 test10.046441078186035 test20.039895057678223
Output for 5.5.31
test1-0.010084867477417 test20.038389921188354 test10.052186012268066 test20.029766082763672
Output for 5.5.30
test10.073086023330688 test20.038086175918579 test10.053750991821289 test20.030664920806885
Output for 5.5.29
test1-0.079572916030884 test20.050863027572632 test10.061157941818237 test20.039439916610718
Output for 5.5.28
test10.033930063247681 test20.037224054336548 test10.049978017807007 test20.02928614616394
Output for 5.5.27
test10.071760892868042 test20.03731107711792 test10.051313161849976 test20.029000997543335
Output for 5.5.26
test10.071316003799438 test20.038474082946777 test10.052905082702637 test20.030760049819946
Output for 5.5.25
test10.06643009185791 test20.03646993637085 test10.050714015960693 test2-0.33115100860596
Output for 5.5.24
test10.065880060195923 test20.035903215408325 test10.050012826919556 test20.027950048446655
Output for 5.5.23
test10.072723150253296 test20.038573980331421 test10.052114009857178 test2-0.34333610534668
Output for 5.5.22
test10.070517063140869 test20.03918981552124 test1-0.25145292282104 test20.030627012252808
Output for 5.5.21
test10.06295108795166 test20.035396814346313 test1-0.22154211997986 test20.029145956039429
Output for 5.5.20
test10.072863817214966 test20.037982940673828 test10.054081916809082 test20.029927968978882
Output for 5.5.19
test10.082411050796509 test20.037374973297119 test10.052392959594727 test20.029462099075317
Output for 5.5.18
test10.072810888290405 test20.0396409034729 test10.052432060241699 test20.029654979705811
Output for 5.5.16
test10.074436902999878 test20.038816928863525 test10.05224609375 test20.030655860900879
Output for 5.5.15
test10.076685905456543 test20.039268970489502 test10.053308010101318 test20.030631065368652
Output for 5.5.14
test10.088706016540527 test20.035989999771118 test10.061945915222168 test20.028573036193848
Output for 5.5.13
test10.073627948760986 test20.038972854614258 test10.052565097808838 test20.030204057693481
Output for 5.5.12
test10.073974132537842 test20.039216041564941 test10.052739858627319 test20.030305862426758
Output for 5.5.11
test10.073035001754761 test20.039180040359497 test1-0.2461199760437 test20.030358791351318
Output for 5.5.10
test10.073169946670532 test20.038564920425415 test10.052742958068848 test20.0310959815979
Output for 5.5.9
test10.072622060775757 test20.038710117340088 test10.052535057067871 test20.030844926834106
Output for 5.5.8
test10.073586940765381 test20.039575099945068 test1-0.1830461025238 test20.030129909515381
Output for 5.5.7
test10.072312116622925 test20.038421869277954 test10.053383111953735 test20.030105829238892
Output for 5.5.6
test10.065630912780762 test20.035512924194336 test10.049651861190796 test20.028708934783936
Output for 5.5.5
test10.075226068496704 test20.038899183273315 test1-0.26729607582092 test20.030238151550293
Output for 5.5.4
test10.071748971939087 test20.038533926010132 test10.051392078399658 test20.03023099899292
Output for 5.5.3
test10.073087930679321 test20.039322853088379 test10.053159952163696 test20.031179904937744
Output for 5.5.2
test10.07284688949585 test2-0.11848402023315 test10.053041934967041 test20.030878067016602
Output for 5.5.1
test10.071805000305176 test20.039207935333252 test10.053759813308716 test20.030617952346802
Output for 5.5.0
test10.07279896736145 test20.038705110549927 test10.052917957305908 test20.030220985412598
Output for 5.4.45
test10.063608884811401 test20.034778833389282 test10.047765016555786 test20.027926921844482
Output for 5.4.44
test10.069484949111938 test20.037286043167114 test10.051137924194336 test20.029906034469604
Output for 5.4.43
test10.06722092628479 test20.036261081695557 test10.049596071243286 test20.036785840988159
Output for 5.4.42
test10.063733100891113 test20.035984992980957 test10.049134969711304 test20.028674840927124
Output for 5.4.41
test10.071152210235596 test20.038511037826538 test10.051995038986206 test20.030149936676025
Output for 5.4.40
test10.071306943893433 test20.038284063339233 test10.052436828613281 test20.030148029327393
Output for 5.4.39
test10.070524930953979 test20.041585922241211 test10.050863981246948 test20.032904148101807
Output for 5.4.38
test10.093154907226562 test20.037667036056519 test10.064634084701538 test20.028398990631104
Output for 5.4.37
test10.071667909622192 test20.038487911224365 test10.051852941513062 test20.030432939529419
Output for 5.4.36
test10.090277194976807 test2-0.23057699203491 test10.061919927597046 test20.038240909576416
Output for 5.4.35
test10.091091156005859 test2-0.15180206298828 test10.062017202377319 test20.040419101715088
Output for 5.4.34
test10.010451793670654 test20.035032987594604 test10.048290014266968 test20.028294801712036
Output for 5.4.32
test10.039533138275146 test20.050785064697266 test10.060528993606567 test20.039989948272705
Output for 5.4.31
test10.072257041931152 test20.038969993591309 test10.052517890930176 test20.03895902633667
Output for 5.4.30
test10.072510957717896 test20.038625955581665 test10.051569938659668 test2-0.32340812683105
Output for 5.4.29
test10.068866014480591 test20.053959131240845 test10.047903776168823 test20.041594982147217
Output for 5.4.28
test10.072566986083984 test20.038742065429688 test10.051949977874756 test2-0.32390189170837
Output for 5.4.27
test10.072853088378906 test20.040137767791748 test10.051331996917725 test20.031357049942017
Output for 5.4.26
test10.073307991027832 test20.039193153381348 test10.052653074264526 test20.031233072280884
Output for 5.4.25
test10.07155704498291 test20.037881135940552 test1-0.25081014633179 test20.02984094619751
Output for 5.4.24
test10.072407007217407 test20.038798809051514 test10.053807973861694 test20.030661821365356
Output for 5.4.23
test10.053574085235596 test20.03134298324585 test1-0.13663482666016 test20.027067899703979
Output for 5.4.22
test10.072149991989136 test20.038378953933716 test10.051412105560303 test20.029941082000732
Output for 5.4.21
test10.094672918319702 test20.054592847824097 test10.064774036407471 test20.029633045196533
Output for 5.4.20
test10.06772518157959 test20.0362548828125 test1-0.19055986404419 test20.028602123260498
Output for 5.4.19
test10.084094047546387 test20.047585964202881 test10.059002161026001 test20.036216974258423
Output for 5.4.18
test10.070603132247925 test20.038349866867065 test10.051507949829102 test20.030120849609375
Output for 5.4.17
test10.074604988098145 test20.039349794387817 test10.054065942764282 test20.030280828475952
Output for 5.4.16
test10.070731163024902 test20.037585973739624 test10.053920030593872 test20.029778957366943
Output for 5.4.15
test10.069705963134766 test20.038522005081177 test10.051000118255615 test20.029989004135132
Output for 5.4.14
test10.062734127044678 test20.036243915557861 test10.047937154769897 test20.028846025466919
Output for 5.4.13
test10.072014808654785 test20.03858494758606 test10.051696062088013 test20.030570983886719
Output for 5.4.12
test10.090999126434326 test20.051528930664062 test10.061105012893677 test2-0.37811303138733
Output for 5.4.11
test10.07105016708374 test20.038192987442017 test10.052428960800171 test20.030611038208008
Output for 5.4.10
test10.071871995925903 test20.038360118865967 test10.052033185958862 test20.030052900314331
Output for 5.4.9
test10.042410135269165 test20.037948131561279 test10.052706003189087 test20.03021502494812
Output for 5.4.8
test10.073217868804932 test20.039187908172607 test10.056317806243896 test20.031698942184448
Output for 5.4.7
test10.062183141708374 test20.034585952758789 test10.047670125961304 test20.028061151504517
Output for 5.4.6
test10.074143886566162 test20.03918981552124 test10.052237033843994 test20.030287981033325
Output for 5.4.5
test10.072567939758301 test20.038678169250488 test10.052228927612305 test20.031820058822632
Output for 5.4.4
test10.070084810256958 test20.037558078765869 test1-0.18230485916138 test20.029523849487305
Output for 5.4.3
test10.071213006973267 test20.038372039794922 test10.051811933517456 test20.031329154968262
Output for 5.4.2
test10.074118137359619 test2-0.16625595092773 test10.051395893096924 test20.029607057571411
Output for 5.4.1
test10.072592973709106 test20.039063930511475 test10.052489042282104 test20.030748844146729
Output for 5.4.0
test10.079488039016724 test20.045402050018311 test10.056205034255981 test20.035255908966064
Output for 5.3.29
test10.097239971160889 test20.05962085723877 test10.066462993621826 test20.046940803527832
Output for 5.3.28
test10.090111017227173 test20.049699068069458 test10.061902046203613 test20.038448095321655
Output for 5.3.27
test1-0.049357891082764 test20.046672821044922 test10.068336963653564 test20.036947965621948
Output for 5.3.26
test10.08930492401123 test20.049293041229248 test10.06001091003418 test20.03882908821106
Output for 5.3.25
test10.085167169570923 test20.049316167831421 test10.058248996734619 test20.037828922271729
Output for 5.3.24
test10.085272073745728 test20.049881935119629 test10.059316873550415 test20.038267135620117
Output for 5.3.23
test10.08440089225769 test20.049894094467163 test10.057435989379883 test20.038594007492065
Output for 5.3.22
test10.085800170898438 test20.061040878295898 test10.057272911071777 test20.047539949417114
Output for 5.3.21
test10.084357976913452 test2-0.16980910301208 test10.081614971160889 test20.050657987594604
Output for 5.3.20
test10.08738899230957 test20.049613952636719 test10.059593200683594 test20.038483858108521
Output for 5.3.19
test10.089462995529175 test20.049467086791992 test10.0607590675354 test20.038063049316406
Output for 5.3.18
test10.084222793579102 test20.049695014953613 test10.059018135070801 test20.03827691078186
Output for 5.3.17
test10.086260080337524 test20.049580097198486 test10.060849189758301 test20.037899971008301
Output for 5.3.16
test10.087268114089966 test20.053262948989868 test10.059867143630981 test20.041527986526489
Output for 5.3.15
test10.093388080596924 test20.052559852600098 test10.06247878074646 test2-0.3902690410614
Output for 5.3.14
test10.088576078414917 test20.052397012710571 test10.059554100036621 test20.040688037872314
Output for 5.3.13
test10.092058897018433 test20.043505907058716 test10.066006898880005 test20.037593126296997
Output for 5.3.12
test10.11307096481323 test20.054744005203247 test10.076467037200928 test20.046742916107178
Output for 5.3.11
test10.11568188667297 test20.065197229385376 test10.089194059371948 test2-0.55898213386536
Output for 5.3.10
test10.087054014205933 test20.049660921096802 test1-0.27295708656311 test20.03806209564209
Output for 5.3.9
test10.10294699668884 test20.04964804649353 test10.069952964782715 test20.038373947143555
Output for 5.3.8
test10.088234186172485 test20.050956964492798 test10.060188055038452 test20.038949012756348
Output for 5.3.7
test10.049928903579712 test20.050760984420776 test10.060120820999146 test20.038007020950317
Output for 5.3.6
test10.086003065109253 test20.061856985092163 test10.056895971298218 test20.049577951431274
Output for 5.3.5
test10.10903000831604 test20.06390905380249 test10.069005966186523 test2-0.47477006912231
Output for 5.3.4
test10.090502977371216 test20.051620006561279 test10.063402891159058 test20.043862819671631
Output for 5.3.3
test10.088000059127808 test20.049622058868408 test1-0.23551201820374 test20.038619995117188
Output for 5.3.2
test10.086590051651001 test20.049652099609375 test10.058980941772461 test20.038336038589478
Output for 5.3.1
test10.07909107208252 test20.047532796859741 test1-0.21399211883545 test20.038444042205811
Output for 5.3.0
test10.085243940353394 test20.052596807479858 test10.059201002120972 test20.040735006332397
Output for 5.2.17
test10.10989689826965 test20.064532995223999 test10.071722984313965 test20.053164958953857
Output for 5.2.16
test10.11746001243591 test20.067849159240723 test10.073067188262939 test20.052949905395508
Output for 5.2.15
test10.11797189712524 test20.067091941833496 test10.075142860412598 test20.055729866027832
Output for 5.2.14
test10.1060688495636 test20.060193061828613 test10.069360017776489 test20.054224014282227
Output for 5.2.13
test10.12121891975403 test20.071265935897827 test10.074763059616089 test20.057245969772339
Output for 5.2.12
test10.10334610939026 test20.06309700012207 test10.069217920303345 test20.053264856338501
Output for 5.2.11
test10.12084412574768 test20.067776918411255 test10.07548999786377 test20.054041147232056
Output for 5.2.10
test10.1135721206665 test20.064427137374878 test10.072528839111328 test20.052793025970459
Output for 5.2.9
test10.12752604484558 test20.061536073684692 test10.08282995223999 test20.054208993911743
Output for 5.2.8
test1-0.075637817382812 test20.065593957901001 test10.072710990905762 test20.052301168441772
Output for 5.2.7
test10.11503601074219 test20.064735889434814 test10.073738813400269 test20.052054882049561
Output for 5.2.6
test10.10571384429932 test20.066370964050293 test10.066727876663208 test20.053707122802734
Output for 5.2.5
test1-0.028759956359863 test20.072206020355225 test10.064953088760376 test20.056953907012939
Output for 5.2.4
test10.10947918891907 test20.066916942596436 test10.068284034729004 test20.053916931152344
Output for 5.2.3
test10.10938405990601 test20.084097146987915 test1-0.33040404319763 test20.067520141601562
Output for 5.2.2
test10.11893796920776 test20.069475889205933 test10.06489109992981 test20.056002855300903
Output for 5.2.1
test10.10103511810303 test20.063506126403809 test10.063605070114136 test20.04833197593689
Output for 5.2.0
test10.1047260761261 test20.06965708732605 test10.067147970199585 test20.054349899291992
Output for 5.1.6
test10.10805606842041 test20.0713050365448 test10.067306995391846 test20.050765991210938
Output for 5.1.5
test10.10621500015259 test20.069055080413818 test10.064771890640259 test20.054417133331299
Output for 5.1.4
test10.10979294776917 test20.085289001464844 test10.068124055862427 test20.067108869552612
Output for 5.1.3
test10.10563993453979 test20.07112193107605 test10.064565896987915 test20.050625085830688
Output for 5.1.2
test10.10499906539917 test20.065994024276733 test10.06663703918457 test20.052429914474487
Output for 5.1.1
test10.1122260093689 test20.068762063980103 test1-0.39016485214233 test20.052259922027588
Output for 5.1.0
test10.10538601875305 test20.067459106445312 test10.065965890884399 test20.053898096084595
Output for 5.0.5
test10.25370001792908 test20.18730711936951 test1-0.87285995483398 test20.18150901794434
Output for 5.0.4
test10.24276304244995 test20.16660499572754 test1-0.86315488815308 test20.16645503044128
Output for 5.0.3
test10.22695207595825 test20.16252899169922 test10.1681809425354 test20.16255784034729
Output for 5.0.2
test10.041396141052246 test20.15552997589111 test10.16977310180664 test20.15845417976379
Output for 5.0.1
test10.24217104911804 test2-0.63493895530701 test10.18119192123413 test20.16904616355896
Output for 5.0.0
test10.23197913169861 test20.15859389305115 test1-0.86130714416504 test20.15882086753845
Output for 4.4.9
test10.243896 test2-0.349192 test10.17364 test20.164378
Output for 4.4.8
test10.248201 test20.164245 test10.172516 test20.163763
Output for 4.4.7
test10.247194 test2-0.421067 test10.172224 test20.165328
Output for 4.4.6
test10.212408 test20.163637 test1-0.733657 test20.163466
Output for 4.4.5
test10.235285 test20.163235 test10.167794 test2-1.131819
Output for 4.4.4
test10.227072 test20.171483 test10.173378 test2-0.991813
Output for 4.4.3
test10.265288 test2-0.483021 test10.189871 test20.181256
Output for 4.4.2
test1-0.045775 test20.18999 test10.173779 test20.189851
Output for 4.4.1
test10.247226 test2-0.658099 test10.173071 test20.17367
Output for 4.4.0
test10.271158 test20.234667 test1-0.94547 test20.218193
Output for 4.3.11
test10.249428 test20.168951 test10.176399 test2-1.175892
Output for 4.3.10
test10.247039 test20.162299 test10.175265 test20.162361
Output for 4.3.9
test10.246977 test2-0.39152 test10.172569 test20.177638
Output for 4.3.8
test10.243412 test20.179772 test10.176231 test2-1.182539
Output for 4.3.7
test10.264543 test20.166452 test10.187872 test20.166599
Output for 4.3.6
test10.249673 test20.176279 test10.172207 test20.16456
Output for 4.3.5
test10.249691 test20.167269 test10.176311 test20.167447
Output for 4.3.4
test10.019235 test20.168417 test10.180942 test20.168403
Output for 4.3.3
test1-0.243224 test20.1812 test10.193962 test20.181149
Output for 4.3.2
test10.239071 test2-0.515321 test10.169189 test20.158968
Output for 4.3.1
test10.242546 test20.169936 test1-0.841993 test20.16891
Output for 4.3.0
test10.248878 test20.170089 test10.178544 test2-1.134322