3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = microtime(true); $i = 10000000; while ($i-- > 0) { if (false) {} elseif (true) {} } $time1 = microtime(true) - $time; unset($i); unset($time); $time = microtime(true); $i = 10000000; while ($i-- > 0) { if (false) {} else if (true) {} } $time2 = microtime(true) - $time; echo $time1." ".$time2;
Output for 7.1.0
0.11470103263855 0.089562177658081
Output for 7.0.14
0.12375593185425 0.087744951248169
Output for 7.0.7
0.12047100067139 0.09710693359375
Output for 7.0.6
0.1376621723175 0.10218191146851
Output for 7.0.5
0.13311815261841 0.10187292098999
Output for 7.0.4
0.10775995254517 0.098655939102173
Output for 7.0.3
0.091484069824219 0.091315031051636
Output for 7.0.2
0.11477184295654 0.09607195854187
Output for 7.0.1
0.13049006462097 0.09950590133667
Output for 7.0.0
0.1063129901886 0.096436023712158
Output for hhvm-3.12.0
0.30300807952881 0.29585814476013
Output for hhvm-3.10.0
0.33966207504272 0.34375095367432
Output for 5.6.28
0.29301190376282 0.22387099266052
Output for 5.6.22
0.29707002639771 0.27485394477844
Output for 5.6.21
0.29844808578491 0.26885080337524
Output for 5.6.20
0.30465793609619 0.26830291748047
Output for 5.6.19
0.29354190826416 0.26910901069641
Output for 5.6.18
0.30502796173096 0.27807402610779
Output for 5.6.17
0.30596208572388 0.27666711807251
Output for 5.6.16
0.29120182991028 0.27185988426208
Output for 5.6.15
0.29115200042725 0.26875996589661
Output for 5.6.14
0.28826379776001 0.27394604682922
Output for 5.6.13
0.28344893455505 0.27052283287048
Output for 5.6.12
0.30699300765991 0.26834392547607
Output for 5.6.11
0.29349398612976 0.26845002174377
Output for 5.6.10
0.32999610900879 0.28715300559998
Output for 5.6.9
0.28991985321045 0.26852989196777
Output for 5.6.8
0.26254415512085 0.22492408752441
Output for 5.6.7
0.22182822227478 0.22187209129333
Output for 5.6.6
0.25317811965942 0.22241401672363
Output for 5.6.5
0.30649900436401 0.26879405975342
Output for 5.6.4
0.29719614982605 0.27593493461609
Output for 5.6.3
0.31312894821167 0.26914000511169
Output for 5.6.2
0.27776503562927 0.26881408691406
Output for 5.6.1
0.29232597351074 0.27727198600769
Output for 5.6.0
0.31064391136169 0.26920795440674
Output for 5.5.36
0.29289603233337 0.26413583755493
Output for 5.5.35
0.27192091941833 0.26839995384216
Output for 5.5.34
0.27655601501465 0.26900911331177
Output for 5.5.33
0.30021595954895 0.27578997612
Output for 5.5.32
0.28294706344604 0.27358102798462
Output for 5.5.31
0.28293800354004 0.26898097991943
Output for 5.5.30
0.30890393257141 0.27812504768372
Output for 5.5.29
0.26973795890808 0.26028895378113
Output for 5.5.28
0.31037211418152 0.2688570022583
Output for 5.5.27
0.30374908447266 0.26882410049438
Output for 5.5.26
0.2751362323761 0.26824307441711
Output for 5.5.25
0.36590886116028 0.27797794342041
Output for 5.5.24
0.23402905464172 0.23703622817993
Output for 5.5.23
0.28267908096313 0.24075388908386
Output for 5.5.22
0.26919102668762 0.22865605354309
Output for 5.5.21
0.29322099685669 0.2372829914093
Output for 5.5.20
0.28945803642273 0.26941704750061
Output for 5.5.19
0.31529903411865 0.26855206489563
Output for 5.5.18
0.32070088386536 0.28180193901062
Output for 5.5.16
0.31399297714233 0.27532291412354
Output for 5.5.15
0.30216407775879 0.28204202651978
Output for 5.5.14
0.29159498214722 0.27048707008362
Output for 5.5.13
0.29538989067078 0.26888990402222
Output for 5.5.12
0.29323601722717 0.27860593795776
Output for 5.5.11
0.2686710357666 0.23079919815063
Output for 5.5.10
0.30803394317627 0.26853704452515
Output for 5.5.9
0.27185893058777 0.23674607276917
Output for 5.5.8
0.28711700439453 0.26901984214783
Output for 5.5.7
0.27875304222107 0.26920509338379
Output for 5.5.6
0.31660389900208 0.28126978874207
Output for 5.5.5
0.26991605758667 0.2689061164856
Output for 5.5.4
0.27912306785583 0.26867294311523
Output for 5.5.3
0.28042411804199 0.27810502052307
Output for 5.5.2
0.3619601726532 0.32225394248962
Output for 5.5.1
0.28421688079834 0.2686710357666
Output for 5.5.0
0.2835648059845 0.26890897750854
Output for 5.4.45
0.3048951625824 0.27179312705994
Output for 5.4.44
0.25860905647278 0.2173171043396
Output for 5.4.43
0.26321196556091 0.26328802108765
Output for 5.4.42
0.30978107452393 0.26386713981628
Output for 5.4.41
0.2708420753479 0.23032116889954
Output for 5.4.40
0.27330088615417 0.22273588180542
Output for 5.4.39
0.22615003585815 0.23430895805359
Output for 5.4.38
0.22378420829773 0.24806308746338
Output for 5.4.37
0.26049184799194 0.22828793525696
Output for 5.4.36
0.30403184890747 0.26072406768799
Output for 5.4.35
0.26962804794312 0.2233190536499
Output for 5.4.34
0.29051899909973 0.26075196266174
Output for 5.4.32
0.2978150844574 0.26150512695312
Output for 5.4.31
0.24919486045837 0.21494793891907
Output for 5.4.30
0.26389002799988 0.26080799102783
Output for 5.4.29
0.28824400901794 0.26577997207642
Output for 5.4.28
0.28732895851135 0.26052093505859
Output for 5.4.27
0.27256202697754 0.2607250213623
Output for 5.4.26
0.30133700370789 0.26059222221375
Output for 5.4.25
0.28350687026978 0.26058602333069
Output for 5.4.24
0.27979588508606 0.26090979576111
Output for 5.4.23
0.27001595497131 0.26067280769348
Output for 5.4.22
0.2662308216095 0.260822057724
Output for 5.4.21
0.3014669418335 0.26073908805847
Output for 5.4.20
0.26056313514709 0.22968697547913
Output for 5.4.19
0.30616188049316 0.27101707458496
Output for 5.4.18
0.26517176628113 0.26036500930786
Output for 5.4.17
0.30331897735596 0.26923990249634
Output for 5.4.16
0.29997301101685 0.27069687843323
Output for 5.4.15
0.28671503067017 0.26065707206726
Output for 5.4.14
0.28507900238037 0.26256203651428
Output for 5.4.13
0.2817051410675 0.26106405258179
Output for 5.4.12
0.2858350276947 0.26563310623169
Output for 5.4.11
0.27226901054382 0.26114201545715
Output for 5.4.10
0.27945899963379 0.26258611679077
Output for 5.4.9
0.26108384132385 0.25761103630066
Output for 5.4.8
0.29124307632446 0.27174210548401
Output for 5.4.7
0.25021481513977 0.21483993530273
Output for 5.4.6
0.30393314361572 0.26089000701904
Output for 5.4.5
0.30772709846497 0.26808309555054
Output for 5.4.4
0.28645801544189 0.26085591316223
Output for 5.4.3
0.26296997070312 0.26229000091553
Output for 5.4.2
0.21491098403931 0.21498799324036
Output for 5.4.1
0.2667019367218 0.22737789154053
Output for 5.4.0
0.22027993202209 0.21542096138
Output for 5.3.29
0.3419668674469 0.30577397346497
Output for 5.3.28
0.33358287811279 0.32151389122009
Output for 5.3.27
0.34500598907471 0.308345079422
Output for 5.3.26
0.30923509597778 0.27953910827637
Output for 5.3.25
0.34369611740112 0.32827997207642
Output for 5.3.24
0.38890600204468 0.34435510635376
Output for 5.3.23
0.35536003112793 0.32392001152039
Output for 5.3.22
0.34355092048645 0.31019997596741
Output for 5.3.21
0.30875301361084 0.26189398765564
Output for 5.3.20
0.36179900169373 0.32450795173645
Output for 5.3.19
0.32775020599365 0.30191612243652
Output for 5.3.18
0.31808805465698 0.30535292625427
Output for 5.3.17
0.33687877655029 0.2971351146698
Output for 5.3.16
0.31036186218262 0.30151081085205
Output for 5.3.15
0.35218906402588 0.31570720672607
Output for 5.3.14
0.32237911224365 0.30139493942261
Output for 5.3.13
0.25735998153687 0.28209090232849
Output for 5.3.12
0.34668898582458 0.33612418174744
Output for 5.3.11
0.26384401321411 0.29179000854492
Output for 5.3.10
0.25652384757996 0.26223087310791
Output for 5.3.9
0.28524684906006 0.25849390029907
Output for 5.3.8
0.30748295783997 0.26858496665955
Output for 5.3.7
0.2560441493988 0.26287198066711
Output for 5.3.6
0.28681802749634 0.2576379776001
Output for 5.3.5
0.34345889091492 0.31400108337402
Output for 5.3.4
0.30985593795776 0.30604910850525
Output for 5.3.3
0.31653499603271 0.28305292129517
Output for 5.3.2
0.34106206893921 0.3033230304718
Output for 5.3.1
0.34653496742249 0.29988503456116
Output for 5.3.0
0.34858202934265 0.32040309906006
Output for 5.2.17
0.4271719455719 0.38616991043091
Output for 5.2.16
0.41995096206665 0.38005399703979
Output for 5.2.15
0.4189760684967 0.39241290092468
Output for 5.2.14
0.40507793426514 0.31641602516174
Output for 5.2.13
0.41925716400146 0.38802909851074
Output for 5.2.12
0.44667410850525 0.39038681983948
Output for 5.2.11
0.41358709335327 0.38001704216003
Output for 5.2.10
0.40659809112549 0.36579084396362
Output for 5.2.9
0.40229797363281 0.38074994087219
Output for 5.2.8
0.43657493591309 0.38297510147095
Output for 5.2.7
0.41969704627991 0.38306403160095
Output for 5.2.6
0.43164682388306 0.36680102348328
Output for 5.2.5
0.34693789482117 0.31339478492737
Output for 5.2.4
0.38880896568298 0.36645603179932
Output for 5.2.3
0.40767097473145 0.39627408981323
Output for 5.2.2
0.41920185089111 0.37233805656433
Output for 5.2.1
0.32591414451599 0.32241606712341
Output for 5.2.0
0.41918087005615 0.372309923172
Output for 5.1.6
0.44339108467102 0.39552783966064
Output for 5.1.5
0.45247602462769 0.40232300758362
Output for 5.1.4
0.43493509292603 0.38662195205688
Output for 5.1.3
0.4084460735321 0.38193607330322
Output for 5.1.2
0.76836800575256 0.63824796676636
Output for 5.1.1
0.7701780796051 0.62693309783936
Output for 5.1.0
0.75303411483765 0.61098599433899
Output for 5.0.5
0.98059391975403 0.98444795608521
Output for 5.0.4
0.96895503997803 0.97359418869019
Output for 5.0.3
0.95690083503723 0.90755701065063
Output for 5.0.2
1.1649079322815 0.96352386474609
Output for 5.0.1
1.0639598369598 0.8852961063385
Output for 5.0.0
1.1573348045349 0.93658995628357
Output for 4.4.9
0.039891 0.913639
Output for 4.4.8
0.953816 -0.080538
Output for 4.4.7
0.117325 0.863009
Output for 4.4.6
0.915789 -0.129799
Output for 4.4.5
0.915752 -0.133708
Output for 4.4.4
0.975207 -0.12559
Output for 4.4.3
0.165998 -0.047011
Output for 4.4.2
0.056928 0.886193
Output for 4.4.1
0.082754 0.904273
Output for 4.4.0
0.935023 -0.061926
Output for 4.3.11
0.053823 0.864621
Output for 4.3.10
0.436692 -0.117545
Output for 4.3.9
0.932418 -0.103007
Output for 4.3.8
0.916553 -0.119578
Output for 4.3.7
0.027105 0.880518
Output for 4.3.6
0.153156 -0.081089
Output for 4.3.5
0.061487 0.883351
Output for 4.3.4
0.061472 0.843419
Output for 4.3.3
0.826813 -0.168892
Output for 4.3.2
0.084834 -0.077735
Output for 4.3.1
0.097751 0.861881
Output for 4.3.0
0.125323 0.86339