3v4l.org

run code in 300+ PHP versions simultaneously
<?php //copyright Lawrence Truett and FluffyCat.com 2009, all rights reserved define('BR', "\n"); echo 'Performance Testing PHP if / else VS switch with 100,000 iterations'.BR.BR; $ifTime = 0; $switchTime = 0; $arrayTime = 0; for ($x = 0; $x < 100000; $x++) { $oneToFive = rand(1,5); if (0 == fmod($x,2)) { $switchTime = $switchTime + testSwitch($oneToFive); $arrayTime = $arrayTime + testArray($oneToFive); $ifTime = $ifTime + testIf($oneToFive); } else { $ifTime = $ifTime + testArray($oneToFive); $arrayTime = $arrayTime + testArray($oneToFive); $switchTime = $switchTime + testIf($oneToFive); } } echo 'total if / else time: '.$ifTime.BR; echo 'total case time: '.$switchTime.BR; echo 'total array time: '.$arrayTime.BR; echo BR; if ($ifTime > $switchTime) { echo 'switch is quicker by '.($ifTime - $switchTime).BR; } else { echo 'if / else is quicker by '.($switchTime - $ifTime).BR; } function testSwitch($oneToFive) { $time_start = microtime(true); switch($oneToFive) { case 1: $z = 1; break; case 2: $z = 2; break; case 3: $z = 3; break; case 4: $z = 4; break; case 5: $z = 5; break; } $time_end = microtime(true); $time = $time_end - $time_start; return $time; } function testIf($oneToFive) { $time_start = microtime(true); if (1 == $oneToFive) { $z = 1; } elseif(2 == $oneToFive) { $z = 2; } elseif(3 == $oneToFive) { $z = 3; } elseif(4 == $oneToFive) { $z = 4; } elseif(5 == $oneToFive) { $z = 5; } $time_end = microtime(true); $time = $time_end - $time_start; return $time; } function testArray($oneToFive){ $time_start = microtime(true); $array = array(0,1,2,3,4,5); $result = $array[$oneToFive]; $time_end = microtime(true); $time = $time_end - $time_start; return $time; }
Output for 7.3.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010448217391968 total case time: 0.0081734657287598 total array time: 0.0075588226318359 switch is quicker by 0.002274751663208
Output for 7.3.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.007087230682373 total case time: 0.0072040557861328 total array time: 0.006603479385376 if / else is quicker by 0.00011682510375977
Output for 7.3.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0069139003753662 total case time: 0.0069611072540283 total array time: 0.0062353610992432 if / else is quicker by 4.7206878662109E-5
Output for 7.3.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0071437358856201 total case time: 0.007462739944458 total array time: 0.006500244140625 if / else is quicker by 0.00031900405883789
Output for 7.3.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0078003406524658 total case time: 0.007291316986084 total array time: 0.0075094699859619 switch is quicker by 0.00050902366638184
Output for 7.3.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0069777965545654 total case time: 0.0072312355041504 total array time: 0.0061240196228027 if / else is quicker by 0.00025343894958496
Output for 7.3.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0069365501403809 total case time: 0.0067777633666992 total array time: 0.0062124729156494 switch is quicker by 0.00015878677368164
Output for 7.2.19
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0077178478240967 total case time: 0.007378101348877 total array time: 0.0069472789764404 switch is quicker by 0.00033974647521973
Output for 7.2.18
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0073471069335938 total case time: 0.0071513652801514 total array time: 0.006289005279541 switch is quicker by 0.00019574165344238
Output for 7.2.17
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0072689056396484 total case time: 0.0075979232788086 total array time: 0.0067927837371826 if / else is quicker by 0.00032901763916016
Output for 7.2.16
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0068974494934082 total case time: 0.007037878036499 total array time: 0.0061004161834717 if / else is quicker by 0.00014042854309082
Output for 7.2.15
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.008134126663208 total case time: 0.0079662799835205 total array time: 0.0070428848266602 switch is quicker by 0.0001678466796875
Output for 7.2.14
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010087490081787 total case time: 0.010078907012939 total array time: 0.0089700222015381 switch is quicker by 8.5830688476562E-6
Output for 7.2.13
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0073847770690918 total case time: 0.0072178840637207 total array time: 0.006582498550415 switch is quicker by 0.00016689300537109
Output for 7.2.12
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.006669282913208 total case time: 0.006838321685791 total array time: 0.0062048435211182 if / else is quicker by 0.00016903877258301
Output for 7.2.11
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.008817195892334 total case time: 0.0088088512420654 total array time: 0.007765531539917 switch is quicker by 8.3446502685547E-6
Output for 7.2.10
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0068631172180176 total case time: 0.0072665214538574 total array time: 0.0058748722076416 if / else is quicker by 0.00040340423583984
Output for 7.2.9
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0079123973846436 total case time: 0.0075817108154297 total array time: 0.007033109664917 switch is quicker by 0.00033068656921387
Output for 7.2.8
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.007695198059082 total case time: 0.0077505111694336 total array time: 0.0072119235992432 if / else is quicker by 5.5313110351562E-5
Output for 7.2.7
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010284185409546 total case time: 0.010459899902344 total array time: 0.0093157291412354 if / else is quicker by 0.00017571449279785
Output for 7.2.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0080108642578125 total case time: 0.0077559947967529 total array time: 0.0074493885040283 switch is quicker by 0.00025486946105957
Output for 7.2.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0080676078796387 total case time: 0.0076992511749268 total array time: 0.0072417259216309 switch is quicker by 0.00036835670471191
Output for 7.2.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.007784366607666 total case time: 0.0074000358581543 total array time: 0.0068843364715576 switch is quicker by 0.00038433074951172
Output for 7.2.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011483669281006 total case time: 0.011220932006836 total array time: 0.01020336151123 switch is quicker by 0.00026273727416992
Output for 7.2.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0089714527130127 total case time: 0.0088069438934326 total array time: 0.0080196857452393 switch is quicker by 0.00016450881958008
Output for 7.2.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0073556900024414 total case time: 0.0072486400604248 total array time: 0.0067031383514404 switch is quicker by 0.0001070499420166
Output for 7.2.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.007108211517334 total case time: 0.0069746971130371 total array time: 0.0063035488128662 switch is quicker by 0.00013351440429688
Output for 7.1.30
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.009507417678833 total case time: 0.0099079608917236 total array time: 0.0090470314025879 if / else is quicker by 0.00040054321289062
Output for 7.1.29
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.009716272354126 total case time: 0.010470628738403 total array time: 0.009056568145752 if / else is quicker by 0.00075435638427734
Output for 7.1.28
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0089852809906006 total case time: 0.0094797611236572 total array time: 0.0084118843078613 if / else is quicker by 0.00049448013305664
Output for 7.1.27
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0088570117950439 total case time: 0.0094723701477051 total array time: 0.0081255435943604 if / else is quicker by 0.00061535835266113
Output for 7.1.26
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.012422323226929 total case time: 0.013283252716064 total array time: 0.01150918006897 if / else is quicker by 0.00086092948913574
Output for 7.1.25
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0085511207580566 total case time: 0.0090262889862061 total array time: 0.0079481601715088 if / else is quicker by 0.00047516822814941
Output for 7.1.24
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0088748931884766 total case time: 0.0094976425170898 total array time: 0.0081844329833984 if / else is quicker by 0.00062274932861328
Output for 7.1.23
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0094234943389893 total case time: 0.0099859237670898 total array time: 0.0089528560638428 if / else is quicker by 0.00056242942810059
Output for 7.1.22
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0089495182037354 total case time: 0.0095615386962891 total array time: 0.0085146427154541 if / else is quicker by 0.00061202049255371
Output for 7.1.21
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.01420259475708 total case time: 0.014615058898926 total array time: 0.013014793395996 if / else is quicker by 0.0004124641418457
Output for 7.1.20
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0093469619750977 total case time: 0.0099267959594727 total array time: 0.0090625286102295 if / else is quicker by 0.000579833984375
Output for 7.1.19
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011480093002319 total case time: 0.01206374168396 total array time: 0.010596036911011 if / else is quicker by 0.00058364868164062
Output for 7.1.18
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.012455940246582 total case time: 0.0130615234375 total array time: 0.011543273925781 if / else is quicker by 0.00060558319091797
Output for 7.1.17
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0099108219146729 total case time: 0.010512828826904 total array time: 0.0089337825775146 if / else is quicker by 0.00060200691223145
Output for 7.1.16
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.012944936752319 total case time: 0.012954235076904 total array time: 0.011431694030762 if / else is quicker by 9.2983245849609E-6
Output for 7.1.15
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011007308959961 total case time: 0.011786937713623 total array time: 0.010163068771362 if / else is quicker by 0.00077962875366211
Output for 7.1.14
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0097806453704834 total case time: 0.010298252105713 total array time: 0.0090546607971191 if / else is quicker by 0.00051760673522949
Output for 7.1.13
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.015204429626465 total case time: 0.01688551902771 total array time: 0.014017105102539 if / else is quicker by 0.0016810894012451
Output for 7.1.12
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0091044902801514 total case time: 0.009727954864502 total array time: 0.0082070827484131 if / else is quicker by 0.00062346458435059
Output for 7.1.11
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011851072311401 total case time: 0.010824680328369 total array time: 0.0090372562408447 switch is quicker by 0.0010263919830322
Output for 7.1.10
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.01084303855896 total case time: 0.011886358261108 total array time: 0.01044774055481 if / else is quicker by 0.0010433197021484
Output for 7.1.9
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0094926357269287 total case time: 0.0098567008972168 total array time: 0.0086483955383301 if / else is quicker by 0.00036406517028809
Output for 7.1.8
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0089116096496582 total case time: 0.0093686580657959 total array time: 0.0084865093231201 if / else is quicker by 0.0004570484161377
Output for 7.1.7
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0088179111480713 total case time: 0.0093655586242676 total array time: 0.0084030628204346 if / else is quicker by 0.00054764747619629
Output for 7.1.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0096960067749023 total case time: 0.0099692344665527 total array time: 0.0087592601776123 if / else is quicker by 0.00027322769165039
Output for 7.1.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.014044523239136 total case time: 0.014916896820068 total array time: 0.013237476348877 if / else is quicker by 0.00087237358093262
Output for 7.1.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0092337131500244 total case time: 0.0099146366119385 total array time: 0.0086808204650879 if / else is quicker by 0.00068092346191406
Output for 7.1.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0095748901367188 total case time: 0.010631084442139 total array time: 0.0091919898986816 if / else is quicker by 0.0010561943054199
Output for 7.1.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.012616395950317 total case time: 0.013341426849365 total array time: 0.011496067047119 if / else is quicker by 0.00072503089904785
Output for 7.1.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0096907615661621 total case time: 0.01038932800293 total array time: 0.0089781284332275 if / else is quicker by 0.00069856643676758
Output for 7.1.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.008622407913208 total case time: 0.0093271732330322 total array time: 0.0080046653747559 if / else is quicker by 0.00070476531982422
Output for 7.0.33
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010904550552368 total case time: 0.010098934173584 total array time: 0.011458396911621 switch is quicker by 0.00080561637878418
Output for 7.0.32
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.012064456939697 total case time: 0.011011362075806 total array time: 0.012470722198486 switch is quicker by 0.0010530948638916
Output for 7.0.31
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.012160778045654 total case time: 0.011047124862671 total array time: 0.012470245361328 switch is quicker by 0.0011136531829834
Output for 7.0.30
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011062383651733 total case time: 0.010377883911133 total array time: 0.011357069015503 switch is quicker by 0.00068449974060059
Output for 7.0.29
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.012628555297852 total case time: 0.011336326599121 total array time: 0.013451814651489 switch is quicker by 0.0012922286987305
Output for 7.0.28
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.014196872711182 total case time: 0.013045310974121 total array time: 0.015012741088867 switch is quicker by 0.0011515617370605
Output for 7.0.27
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.016673564910889 total case time: 0.015244245529175 total array time: 0.017771005630493 switch is quicker by 0.0014293193817139
Output for 7.0.26
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.015385389328003 total case time: 0.014378309249878 total array time: 0.016414642333984 switch is quicker by 0.001007080078125
Output for 7.0.25
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.015789747238159 total case time: 0.014602661132812 total array time: 0.017356872558594 switch is quicker by 0.0011870861053467
Output for 7.0.24
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.01587963104248 total case time: 0.017084360122681 total array time: 0.017598867416382 if / else is quicker by 0.0012047290802002
Output for 7.0.23
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.012150287628174 total case time: 0.011524200439453 total array time: 0.012756586074829 switch is quicker by 0.0006260871887207
Output for 7.0.22
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011085510253906 total case time: 0.010726690292358 total array time: 0.011883974075317 switch is quicker by 0.00035881996154785
Output for 7.0.21
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010864973068237 total case time: 0.010042667388916 total array time: 0.011651515960693 switch is quicker by 0.00082230567932129
Output for 7.0.20
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.013928174972534 total case time: 0.013445615768433 total array time: 0.014878273010254 switch is quicker by 0.00048255920410156
Output for 7.0.19
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011987686157227 total case time: 0.011147737503052 total array time: 0.012585878372192 switch is quicker by 0.0008399486541748
Output for 7.0.18
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011830806732178 total case time: 0.011590003967285 total array time: 0.012237548828125 switch is quicker by 0.00024080276489258
Output for 7.0.17
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011953830718994 total case time: 0.011324882507324 total array time: 0.012437582015991 switch is quicker by 0.00062894821166992
Output for 7.0.16
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010612964630127 total case time: 0.009984016418457 total array time: 0.011218070983887 switch is quicker by 0.00062894821166992
Output for 7.0.15
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010210990905762 total case time: 0.0099196434020996 total array time: 0.011060476303101 switch is quicker by 0.00029134750366211
Output for 7.0.14
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.012143850326538 total case time: 0.011139154434204 total array time: 0.012968778610229 switch is quicker by 0.001004695892334
Output for 7.0.13
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011621236801147 total case time: 0.010920524597168 total array time: 0.012602090835571 switch is quicker by 0.00070071220397949
Output for 7.0.12
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011314153671265 total case time: 0.010675191879272 total array time: 0.011790752410889 switch is quicker by 0.00063896179199219
Output for 7.0.11
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011275291442871 total case time: 0.010735034942627 total array time: 0.011669874191284 switch is quicker by 0.00054025650024414
Output for 7.0.10
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010826826095581 total case time: 0.0099492073059082 total array time: 0.011200189590454 switch is quicker by 0.00087761878967285
Output for 7.0.9
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.016604661941528 total case time: 0.015070199966431 total array time: 0.017743349075317 switch is quicker by 0.0015344619750977
Output for 7.0.8
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.01002025604248 total case time: 0.0093655586242676 total array time: 0.010807275772095 switch is quicker by 0.00065469741821289
Output for 7.0.7
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.012290239334106 total case time: 0.011355638504028 total array time: 0.012429475784302 switch is quicker by 0.00093460083007812
Output for 7.0.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.018601894378662 total case time: 0.017266511917114 total array time: 0.020342826843262 switch is quicker by 0.0013353824615479
Output for 7.0.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010673046112061 total case time: 0.01006817817688 total array time: 0.011252880096436 switch is quicker by 0.00060486793518066
Output for 7.0.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.011006832122803 total case time: 0.010646343231201 total array time: 0.01154637336731 switch is quicker by 0.00036048889160156
Output for 7.0.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010350704193115 total case time: 0.0095562934875488 total array time: 0.010560989379883 switch is quicker by 0.00079441070556641
Output for 7.0.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010315418243408 total case time: 0.0098040103912354 total array time: 0.010806798934937 switch is quicker by 0.00051140785217285
Output for 7.0.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010964155197144 total case time: 0.010213136672974 total array time: 0.011503934860229 switch is quicker by 0.00075101852416992
Output for 7.0.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.010283946990967 total case time: 0.0097987651824951 total array time: 0.011286735534668 switch is quicker by 0.00048518180847168
Output for 5.6.40
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0266432762146 total case time: 0.019722700119019 total array time: 0.037997245788574 switch is quicker by 0.0069205760955811
Output for 5.6.39
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023817300796509 total case time: 0.018005847930908 total array time: 0.030064105987549 switch is quicker by 0.0058114528656006
Output for 5.6.38
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023548364639282 total case time: 0.016753435134888 total array time: 0.030268907546997 switch is quicker by 0.0067949295043945
Output for 5.6.37
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02559232711792 total case time: 0.018451452255249 total array time: 0.033621549606323 switch is quicker by 0.0071408748626709
Output for 5.6.36
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02621603012085 total case time: 0.019191265106201 total array time: 0.03469181060791 switch is quicker by 0.0070247650146484
Output for 5.6.35
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.022938966751099 total case time: 0.017646312713623 total array time: 0.030099391937256 switch is quicker by 0.0052926540374756
Output for 5.6.34
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.036340713500977 total case time: 0.026139974594116 total array time: 0.047508001327515 switch is quicker by 0.01020073890686
Output for 5.6.33
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.032404661178589 total case time: 0.023567676544189 total array time: 0.042190790176392 switch is quicker by 0.0088369846343994
Output for 5.6.32
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.03781795501709 total case time: 0.027328014373779 total array time: 0.049274921417236 switch is quicker by 0.010489940643311
Output for 5.6.31
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025110721588135 total case time: 0.018421649932861 total array time: 0.032906770706177 switch is quicker by 0.0066890716552734
Output for 5.6.30
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023580551147461 total case time: 0.017565965652466 total array time: 0.030891180038452 switch is quicker by 0.0060145854949951
Output for 5.6.29
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.022689580917358 total case time: 0.01803731918335 total array time: 0.029520750045776 switch is quicker by 0.0046522617340088
Output for 5.6.28
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.022492647171021 total case time: 0.016722440719604 total array time: 0.028503656387329 switch is quicker by 0.005770206451416
Output for 5.6.27
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023099899291992 total case time: 0.017085790634155 total array time: 0.029923439025879 switch is quicker by 0.0060141086578369
Output for 5.6.26
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026347160339355 total case time: 0.019143104553223 total array time: 0.034502029418945 switch is quicker by 0.0072040557861328
Output for 5.6.25
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023227691650391 total case time: 0.017349720001221 total array time: 0.030703783035278 switch is quicker by 0.0058779716491699
Output for 5.6.24
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.022978782653809 total case time: 0.016924619674683 total array time: 0.029691696166992 switch is quicker by 0.006054162979126
Output for 5.6.23
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024730682373047 total case time: 0.018664836883545 total array time: 0.031720399856567 switch is quicker by 0.006065845489502
Output for 5.6.22
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.029429912567139 total case time: 0.020837068557739 total array time: 0.037952184677124 switch is quicker by 0.0085928440093994
Output for 5.6.21
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024376153945923 total case time: 0.018064498901367 total array time: 0.031790733337402 switch is quicker by 0.0063116550445557
Output for 5.6.20
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02361273765564 total case time: 0.017055511474609 total array time: 0.030643463134766 switch is quicker by 0.0065572261810303
Output for 5.6.19
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.022452354431152 total case time: 0.019755601882935 total array time: 0.029582500457764 switch is quicker by 0.0026967525482178
Output for 5.6.18
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023937225341797 total case time: 0.017335653305054 total array time: 0.030724287033081 switch is quicker by 0.0066015720367432
Output for 5.6.17
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.032939195632935 total case time: 0.023958444595337 total array time: 0.044475793838501 switch is quicker by 0.0089807510375977
Output for 5.6.16
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023690223693848 total case time: 0.019366502761841 total array time: 0.031203031539917 switch is quicker by 0.0043237209320068
Output for 5.6.15
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025477647781372 total case time: 0.019365072250366 total array time: 0.032917022705078 switch is quicker by 0.0061125755310059
Output for 5.6.14
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.031163930892944 total case time: 0.022789001464844 total array time: 0.040934562683105 switch is quicker by 0.0083749294281006
Output for 5.6.13
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024838209152222 total case time: 0.018293142318726 total array time: 0.03309965133667 switch is quicker by 0.0065450668334961
Output for 5.6.12
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024324655532837 total case time: 0.017450094223022 total array time: 0.032227039337158 switch is quicker by 0.0068745613098145
Output for 5.6.11
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023476839065552 total case time: 0.017114639282227 total array time: 0.030259609222412 switch is quicker by 0.0063621997833252
Output for 5.6.10
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02655816078186 total case time: 0.019558191299438 total array time: 0.034806251525879 switch is quicker by 0.0069999694824219
Output for 5.6.9
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025299310684204 total case time: 0.01847243309021 total array time: 0.033541679382324 switch is quicker by 0.0068268775939941
Output for 5.6.8
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023635864257812 total case time: 0.017086267471313 total array time: 0.030643701553345 switch is quicker by 0.006549596786499
Output for 5.6.7
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026122093200684 total case time: 0.020149946212769 total array time: 0.034478902816772 switch is quicker by 0.005972146987915
Output for 5.6.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024929046630859 total case time: 0.018407821655273 total array time: 0.032238006591797 switch is quicker by 0.0065212249755859
Output for 5.6.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023109436035156 total case time: 0.016999244689941 total array time: 0.029672145843506 switch is quicker by 0.0061101913452148
Output for 5.6.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025659322738647 total case time: 0.018995523452759 total array time: 0.033484220504761 switch is quicker by 0.0066637992858887
Output for 5.6.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025007724761963 total case time: 0.018514156341553 total array time: 0.031847953796387 switch is quicker by 0.0064935684204102
Output for 5.6.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023506164550781 total case time: 0.017248868942261 total array time: 0.030261039733887 switch is quicker by 0.0062572956085205
Output for 5.6.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026931047439575 total case time: 0.019835948944092 total array time: 0.034581661224365 switch is quicker by 0.0070950984954834
Output for 5.6.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.035436391830444 total case time: 0.026345729827881 total array time: 0.046525478363037 switch is quicker by 0.0090906620025635
Output for 5.5.38
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.034536838531494 total case time: 0.024668455123901 total array time: 0.044715881347656 switch is quicker by 0.0098683834075928
Output for 5.5.37
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.029333114624023 total case time: 0.022168874740601 total array time: 0.041327714920044 switch is quicker by 0.0071642398834229
Output for 5.5.36
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.027181386947632 total case time: 0.020436763763428 total array time: 0.035386562347412 switch is quicker by 0.0067446231842041
Output for 5.5.35
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023624897003174 total case time: 0.017162799835205 total array time: 0.030840396881104 switch is quicker by 0.0064620971679688
Output for 5.5.34
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023869037628174 total case time: 0.017534494400024 total array time: 0.031544208526611 switch is quicker by 0.0063345432281494
Output for 5.5.33
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026585817337036 total case time: 0.01941967010498 total array time: 0.03482985496521 switch is quicker by 0.0071661472320557
Output for 5.5.32
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026024103164673 total case time: 0.018573045730591 total array time: 0.033248424530029 switch is quicker by 0.007451057434082
Output for 5.5.31
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02491021156311 total case time: 0.017948389053345 total array time: 0.032564163208008 switch is quicker by 0.0069618225097656
Output for 5.5.30
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.037771463394165 total case time: 0.026402950286865 total array time: 0.049230813980103 switch is quicker by 0.0113685131073
Output for 5.5.29
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025839567184448 total case time: 0.01884126663208 total array time: 0.0339195728302 switch is quicker by 0.0069983005523682
Output for 5.5.28
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024166107177734 total case time: 0.022914409637451 total array time: 0.030850887298584 switch is quicker by 0.0012516975402832
Output for 5.5.27
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024711847305298 total case time: 0.017911195755005 total array time: 0.032332420349121 switch is quicker by 0.006800651550293
Output for 5.5.26
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.029695749282837 total case time: 0.021989345550537 total array time: 0.039291620254517 switch is quicker by 0.0077064037322998
Output for 5.5.25
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025272607803345 total case time: 0.019000053405762 total array time: 0.032879829406738 switch is quicker by 0.006272554397583
Output for 5.5.24
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.036023616790771 total case time: 0.026219367980957 total array time: 0.046694993972778 switch is quicker by 0.0098042488098145
Output for 5.5.23
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02827000617981 total case time: 0.020837545394897 total array time: 0.03710412979126 switch is quicker by 0.0074324607849121
Output for 5.5.22
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.028789520263672 total case time: 0.020592451095581 total array time: 0.037689208984375 switch is quicker by 0.0081970691680908
Output for 5.5.21
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025480985641479 total case time: 0.019341707229614 total array time: 0.032967805862427 switch is quicker by 0.0061392784118652
Output for 5.5.20
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025503873825073 total case time: 0.019272327423096 total array time: 0.032971382141113 switch is quicker by 0.0062315464019775
Output for 5.5.19
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023547649383545 total case time: 0.016940832138062 total array time: 0.031093597412109 switch is quicker by 0.0066068172454834
Output for 5.5.18
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023609161376953 total case time: 0.017182111740112 total array time: 0.030960083007812 switch is quicker by 0.0064270496368408
Output for 5.5.17
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.027215719223022 total case time: 0.020699262619019 total array time: 0.036037683486938 switch is quicker by 0.0065164566040039
Output for 5.5.16
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.031263589859009 total case time: 0.022983551025391 total array time: 0.041386365890503 switch is quicker by 0.0082800388336182
Output for 5.5.15
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026896476745605 total case time: 0.021148443222046 total array time: 0.035149097442627 switch is quicker by 0.0057480335235596
Output for 5.5.14
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.032825469970703 total case time: 0.023442506790161 total array time: 0.044932842254639 switch is quicker by 0.009382963180542
Output for 5.5.13
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025592565536499 total case time: 0.020302295684814 total array time: 0.035056829452515 switch is quicker by 0.0052902698516846
Output for 5.5.12
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024558067321777 total case time: 0.018103361129761 total array time: 0.032380104064941 switch is quicker by 0.0064547061920166
Output for 5.5.11
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02484393119812 total case time: 0.019045114517212 total array time: 0.032045841217041 switch is quicker by 0.0057988166809082
Output for 5.5.10
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.037721872329712 total case time: 0.027730941772461 total array time: 0.049271583557129 switch is quicker by 0.009990930557251
Output for 5.5.9
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023663520812988 total case time: 0.017223119735718 total array time: 0.031033992767334 switch is quicker by 0.0064404010772705
Output for 5.5.8
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025947570800781 total case time: 0.018865823745728 total array time: 0.034011125564575 switch is quicker by 0.0070817470550537
Output for 5.5.7
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.030278444290161 total case time: 0.021068334579468 total array time: 0.039454460144043 switch is quicker by 0.0092101097106934
Output for 5.5.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.031172513961792 total case time: 0.022808074951172 total array time: 0.040658950805664 switch is quicker by 0.0083644390106201
Output for 5.5.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025723218917847 total case time: 0.017797946929932 total array time: 0.029821872711182 switch is quicker by 0.007925271987915
Output for 5.5.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025623798370361 total case time: 0.017369508743286 total array time: 0.03107762336731 switch is quicker by 0.0082542896270752
Output for 5.5.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026345252990723 total case time: 0.019680261611938 total array time: 0.035177230834961 switch is quicker by 0.0066649913787842
Output for 5.5.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.034931659698486 total case time: 0.026772260665894 total array time: 0.046212911605835 switch is quicker by 0.0081593990325928
Output for 5.5.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.041689395904541 total case time: 0.029731750488281 total array time: 0.05516529083252 switch is quicker by 0.01195764541626
Output for 5.5.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.035242319107056 total case time: 0.025631666183472 total array time: 0.046478033065796 switch is quicker by 0.009610652923584
Output for 5.4.45
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.030596971511841 total case time: 0.022205829620361 total array time: 0.039310693740845 switch is quicker by 0.0083911418914795
Output for 5.4.44
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.032079696655273 total case time: 0.023476123809814 total array time: 0.042628526687622 switch is quicker by 0.008603572845459
Output for 5.4.43
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024703741073608 total case time: 0.017945051193237 total array time: 0.032595157623291 switch is quicker by 0.0067586898803711
Output for 5.4.42
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023866653442383 total case time: 0.017467498779297 total array time: 0.031116247177124 switch is quicker by 0.0063991546630859
Output for 5.4.41
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023630619049072 total case time: 0.017630577087402 total array time: 0.031030893325806 switch is quicker by 0.0060000419616699
Output for 5.4.40
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023932695388794 total case time: 0.017334938049316 total array time: 0.031154155731201 switch is quicker by 0.0065977573394775
Output for 5.4.39
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023621082305908 total case time: 0.017083883285522 total array time: 0.030336618423462 switch is quicker by 0.0065371990203857
Output for 5.4.38
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.035452127456665 total case time: 0.028639316558838 total array time: 0.046471357345581 switch is quicker by 0.0068128108978271
Output for 5.4.37
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023722648620605 total case time: 0.01728081703186 total array time: 0.031139135360718 switch is quicker by 0.0064418315887451
Output for 5.4.36
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02436089515686 total case time: 0.017743110656738 total array time: 0.031684398651123 switch is quicker by 0.0066177845001221
Output for 5.4.35
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.04151725769043 total case time: 0.030049800872803 total array time: 0.054844617843628 switch is quicker by 0.011467456817627
Output for 5.4.34
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02584981918335 total case time: 0.019335985183716 total array time: 0.034143924713135 switch is quicker by 0.0065138339996338
Output for 5.4.33
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.038410186767578 total case time: 0.027599811553955 total array time: 0.050432443618774 switch is quicker by 0.010810375213623
Output for 5.4.32
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.035840749740601 total case time: 0.026128768920898 total array time: 0.046294927597046 switch is quicker by 0.0097119808197021
Output for 5.4.31
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023125886917114 total case time: 0.016908407211304 total array time: 0.030107736587524 switch is quicker by 0.0062174797058105
Output for 5.4.30
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.027148485183716 total case time: 0.019839525222778 total array time: 0.034923315048218 switch is quicker by 0.0073089599609375
Output for 5.4.29
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024696350097656 total case time: 0.017748117446899 total array time: 0.031563282012939 switch is quicker by 0.0069482326507568
Output for 5.4.28
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023832082748413 total case time: 0.017042398452759 total array time: 0.030592441558838 switch is quicker by 0.0067896842956543
Output for 5.4.27
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023302555084229 total case time: 0.017034530639648 total array time: 0.030270576477051 switch is quicker by 0.0062680244445801
Output for 5.4.26
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024930000305176 total case time: 0.018656253814697 total array time: 0.032390832901001 switch is quicker by 0.0062737464904785
Output for 5.4.25
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.041539907455444 total case time: 0.02931809425354 total array time: 0.053357839584351 switch is quicker by 0.012221813201904
Output for 5.4.24
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025866985321045 total case time: 0.0219886302948 total array time: 0.033331394195557 switch is quicker by 0.0038783550262451
Output for 5.4.23
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026648283004761 total case time: 0.019564151763916 total array time: 0.036144733428955 switch is quicker by 0.0070841312408447
Output for 5.4.22
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.031934022903442 total case time: 0.023018836975098 total array time: 0.041589736938477 switch is quicker by 0.0089151859283447
Output for 5.4.21
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02686882019043 total case time: 0.019698858261108 total array time: 0.035115003585815 switch is quicker by 0.0071699619293213
Output for 5.4.20
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024460077285767 total case time: 0.017720460891724 total array time: 0.033204078674316 switch is quicker by 0.006739616394043
Output for 5.4.19
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024483919143677 total case time: 0.018543004989624 total array time: 0.032230615615845 switch is quicker by 0.0059409141540527
Output for 5.4.18
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.037323713302612 total case time: 0.025933742523193 total array time: 0.047090530395508 switch is quicker by 0.011389970779419
Output for 5.4.17
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.032602310180664 total case time: 0.023590326309204 total array time: 0.04254674911499 switch is quicker by 0.00901198387146
Output for 5.4.16
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025920391082764 total case time: 0.020424127578735 total array time: 0.032891988754272 switch is quicker by 0.0054962635040283
Output for 5.4.15
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.032813787460327 total case time: 0.024170160293579 total array time: 0.042783737182617 switch is quicker by 0.008643627166748
Output for 5.4.14
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024442672729492 total case time: 0.017999172210693 total array time: 0.032168865203857 switch is quicker by 0.0064435005187988
Output for 5.4.13
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025944709777832 total case time: 0.018968105316162 total array time: 0.033538341522217 switch is quicker by 0.0069766044616699
Output for 5.4.12
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.027194976806641 total case time: 0.019727945327759 total array time: 0.035260438919067 switch is quicker by 0.0074670314788818
Output for 5.4.11
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.031504392623901 total case time: 0.026175498962402 total array time: 0.04105544090271 switch is quicker by 0.005328893661499
Output for 5.4.10
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026138782501221 total case time: 0.020033836364746 total array time: 0.034087657928467 switch is quicker by 0.0061049461364746
Output for 5.4.9
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024777889251709 total case time: 0.01750922203064 total array time: 0.03265118598938 switch is quicker by 0.0072686672210693
Output for 5.4.8
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024321794509888 total case time: 0.017459392547607 total array time: 0.031909704208374 switch is quicker by 0.0068624019622803
Output for 5.4.7
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.023993730545044 total case time: 0.017699241638184 total array time: 0.03138279914856 switch is quicker by 0.0062944889068604
Output for 5.4.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.031628131866455 total case time: 0.022377729415894 total array time: 0.039380788803101 switch is quicker by 0.0092504024505615
Output for 5.4.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026126146316528 total case time: 0.018572568893433 total array time: 0.034389019012451 switch is quicker by 0.0075535774230957
Output for 5.4.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026751756668091 total case time: 0.018945217132568 total array time: 0.034806966781616 switch is quicker by 0.0078065395355225
Output for 5.4.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024787902832031 total case time: 0.017941951751709 total array time: 0.033040046691895 switch is quicker by 0.0068459510803223
Output for 5.4.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.035115242004395 total case time: 0.02555513381958 total array time: 0.045459270477295 switch is quicker by 0.0095601081848145
Output for 5.4.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024443387985229 total case time: 0.018102645874023 total array time: 0.032085418701172 switch is quicker by 0.0063407421112061
Output for 5.4.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.031159639358521 total case time: 0.022596120834351 total array time: 0.040914297103882 switch is quicker by 0.0085635185241699
Output for 5.3.29
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.038123607635498 total case time: 0.028964757919312 total array time: 0.047842025756836 switch is quicker by 0.0091588497161865
Output for 5.3.28
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.027159214019775 total case time: 0.020826101303101 total array time: 0.033534526824951 switch is quicker by 0.0063331127166748
Output for 5.3.27
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.029740333557129 total case time: 0.02328896522522 total array time: 0.03657341003418 switch is quicker by 0.0064513683319092
Output for 5.3.26
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.027445316314697 total case time: 0.020955085754395 total array time: 0.034835815429688 switch is quicker by 0.0064902305603027
Output for 5.3.25
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.03130316734314 total case time: 0.026930570602417 total array time: 0.040300846099854 switch is quicker by 0.0043725967407227
Output for 5.3.24
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.027548789978027 total case time: 0.021348476409912 total array time: 0.033772706985474 switch is quicker by 0.0062003135681152
Output for 5.3.23
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025013208389282 total case time: 0.019254684448242 total array time: 0.032147645950317 switch is quicker by 0.00575852394104
Output for 5.3.22
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.028698921203613 total case time: 0.021820306777954 total array time: 0.035332918167114 switch is quicker by 0.0068786144256592
Output for 5.3.21
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.029212474822998 total case time: 0.022364854812622 total array time: 0.036729574203491 switch is quicker by 0.006847620010376
Output for 5.3.20
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025259256362915 total case time: 0.019228458404541 total array time: 0.03172779083252 switch is quicker by 0.006030797958374
Output for 5.3.19
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.032814025878906 total case time: 0.019913911819458 total array time: 0.032345771789551 switch is quicker by 0.012900114059448
Output for 5.3.18
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026498556137085 total case time: 0.020341634750366 total array time: 0.033200263977051 switch is quicker by 0.0061569213867188
Output for 5.3.17
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025061845779419 total case time: 0.019363880157471 total array time: 0.031195402145386 switch is quicker by 0.0056979656219482
Output for 5.3.16
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.044618129730225 total case time: 0.033427238464355 total array time: 0.056030750274658 switch is quicker by 0.011190891265869
Output for 5.3.15
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.030184507369995 total case time: 0.022962093353271 total array time: 0.036739826202393 switch is quicker by 0.0072224140167236
Output for 5.3.14
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.043738603591919 total case time: 0.032890558242798 total array time: 0.055176973342896 switch is quicker by 0.010848045349121
Output for 5.3.13
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.028482437133789 total case time: 0.02147102355957 total array time: 0.034654378890991 switch is quicker by 0.0070114135742188
Output for 5.3.12
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.03387451171875 total case time: 0.025773525238037 total array time: 0.042796611785889 switch is quicker by 0.0081009864807129
Output for 5.3.11
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025708436965942 total case time: 0.019915819168091 total array time: 0.032895088195801 switch is quicker by 0.0057926177978516
Output for 5.3.10
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0333411693573 total case time: 0.02695631980896 total array time: 0.040539026260376 switch is quicker by 0.0063848495483398
Output for 5.3.9
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.027801275253296 total case time: 0.020968675613403 total array time: 0.03438925743103 switch is quicker by 0.0068325996398926
Output for 5.3.8
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024664640426636 total case time: 0.018923282623291 total array time: 0.030840158462524 switch is quicker by 0.0057413578033447
Output for 5.3.7
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025870561599731 total case time: 0.019870758056641 total array time: 0.031310796737671 switch is quicker by 0.0059998035430908
Output for 5.3.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026633977890015 total case time: 0.020386695861816 total array time: 0.032936573028564 switch is quicker by 0.0062472820281982
Output for 5.3.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025848388671875 total case time: 0.019736289978027 total array time: 0.031647682189941 switch is quicker by 0.0061120986938477
Output for 5.3.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.025594472885132 total case time: 0.019495010375977 total array time: 0.032115936279297 switch is quicker by 0.0060994625091553
Output for 5.3.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.026746034622192 total case time: 0.021213531494141 total array time: 0.033215045928955 switch is quicker by 0.0055325031280518
Output for 5.3.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.02561092376709 total case time: 0.018785953521729 total array time: 0.033631801605225 switch is quicker by 0.0068249702453613
Output for 5.3.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.034826517105103 total case time: 0.02679967880249 total array time: 0.044105768203735 switch is quicker by 0.0080268383026123
Output for 5.3.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.024669170379639 total case time: 0.01900315284729 total array time: 0.030805587768555 switch is quicker by 0.0056660175323486
Output for 5.2.17
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.03717827796936 total case time: 0.030542373657227 total array time: 0.044209718704224 switch is quicker by 0.0066359043121338
Output for 5.2.16
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.03722357749939 total case time: 0.030384063720703 total array time: 0.043959379196167 switch is quicker by 0.0068395137786865
Output for 5.2.15
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.036850214004517 total case time: 0.030480146408081 total array time: 0.043644428253174 switch is quicker by 0.0063700675964355
Output for 5.2.14
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.041828155517578 total case time: 0.034706115722656 total array time: 0.050484895706177 switch is quicker by 0.0071220397949219
Output for 5.2.13
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.035144329071045 total case time: 0.028832197189331 total array time: 0.042265653610229 switch is quicker by 0.0063121318817139
Output for 5.2.12
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.035739421844482 total case time: 0.029903650283813 total array time: 0.042434215545654 switch is quicker by 0.0058357715606689
Output for 5.2.11
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.034636497497559 total case time: 0.028279066085815 total array time: 0.041326284408569 switch is quicker by 0.0063574314117432
Output for 5.2.10
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.038078784942627 total case time: 0.031173229217529 total array time: 0.045788764953613 switch is quicker by 0.0069055557250977
Output for 5.2.9
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.046392917633057 total case time: 0.038396596908569 total array time: 0.054955005645752 switch is quicker by 0.0079963207244873
Output for 5.2.8
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.04387640953064 total case time: 0.035740613937378 total array time: 0.052962779998779 switch is quicker by 0.0081357955932617
Output for 5.2.7
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.036517381668091 total case time: 0.029604911804199 total array time: 0.04383659362793 switch is quicker by 0.0069124698638916
Output for 5.2.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.034848928451538 total case time: 0.028772115707397 total array time: 0.04241418838501 switch is quicker by 0.0060768127441406
Output for 5.2.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.035032510757446 total case time: 0.029330968856812 total array time: 0.041452169418335 switch is quicker by 0.0057015419006348
Output for 5.2.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.03912878036499 total case time: 0.032899379730225 total array time: 0.046626806259155 switch is quicker by 0.0062294006347656
Output for 5.2.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.03753399848938 total case time: 0.032281875610352 total array time: 0.044659852981567 switch is quicker by 0.0052521228790283
Output for 5.2.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.037250995635986 total case time: 0.031552791595459 total array time: 0.043837070465088 switch is quicker by 0.0056982040405273
Output for 5.2.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.036062240600586 total case time: 0.030342578887939 total array time: 0.044200658798218 switch is quicker by 0.0057196617126465
Output for 5.2.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.045905351638794 total case time: 0.037706851959229 total array time: 0.054344177246094 switch is quicker by 0.0081984996795654
Output for 5.1.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.038753509521484 total case time: 0.033911466598511 total array time: 0.045626163482666 switch is quicker by 0.0048420429229736
Output for 5.1.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.040177583694458 total case time: 0.033442497253418 total array time: 0.046808958053589 switch is quicker by 0.00673508644104
Output for 5.1.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.039276599884033 total case time: 0.032733917236328 total array time: 0.046071767807007 switch is quicker by 0.0065426826477051
Output for 5.1.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.037153244018555 total case time: 0.030748844146729 total array time: 0.043637037277222 switch is quicker by 0.0064043998718262
Output for 5.1.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.054077863693237 total case time: 0.044031381607056 total array time: 0.063734292984009 switch is quicker by 0.010046482086182
Output for 5.1.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.048811435699463 total case time: 0.041089296340942 total array time: 0.057239055633545 switch is quicker by 0.0077221393585205
Output for 5.1.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.051854372024536 total case time: 0.043021440505981 total array time: 0.060240507125854 switch is quicker by 0.0088329315185547
Output for 5.0.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.081022262573242 total case time: 0.06592583656311 total array time: 0.089204788208008 switch is quicker by 0.015096426010132
Output for 5.0.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.063745498657227 total case time: 0.053962230682373 total array time: 0.073703289031982 switch is quicker by 0.0097832679748535
Output for 5.0.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.0589599609375 total case time: 0.049712657928467 total array time: 0.067750692367554 switch is quicker by 0.0092473030090332
Output for 5.0.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.061742305755615 total case time: 0.052532196044922 total array time: 0.069581508636475 switch is quicker by 0.0092101097106934
Output for 5.0.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.059023857116699 total case time: 0.048799991607666 total array time: 0.067393779754639 switch is quicker by 0.010223865509033
Output for 5.0.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.062577724456787 total case time: 0.054281234741211 total array time: 0.071053743362427 switch is quicker by 0.0082964897155762
Output for 4.4.9
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.083659999999987 total case time: 0.070155999999985 total array time: 0.092447999999992 switch is quicker by 0.013504000000003
Output for 4.4.8
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.092832000000007 total case time: 0.079989999999998 total array time: 0.10263999999999 switch is quicker by 0.012842000000009
Output for 4.4.7
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.090561999999984 total case time: 0.078827000000006 total array time: 0.10193099999999 switch is quicker by 0.011734999999977
Output for 4.4.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.094360999999997 total case time: 0.083572999999992 total array time: 0.10499600000001 switch is quicker by 0.010788000000005
Output for 4.4.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.080762999999988 total case time: 0.070690999999986 total array time: 0.091369999999985 switch is quicker by 0.010072000000002
Output for 4.4.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.076869999999988 total case time: 0.066378999999988 total array time: 0.087101999999976 switch is quicker by 0.010491000000001
Output for 4.4.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.07618299999998 total case time: 0.066583999999979 total array time: 0.085684999999978 switch is quicker by 0.0095990000000019
Output for 4.4.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.10061100000003 total case time: 0.087542999999995 total array time: 0.11557400000001 switch is quicker by 0.013068000000035
Output for 4.4.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.077599999999999 total case time: 0.06851199999999 total array time: 0.086839999999995 switch is quicker by 0.0090880000000084
Output for 4.4.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.090640000000013 total case time: 0.079460000000021 total array time: 0.10129700000001 switch is quicker by 0.011179999999991
Output for 4.3.11
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.087068000000013 total case time: 0.076631999999996 total array time: 0.097809999999995 switch is quicker by 0.010436000000017
Output for 4.3.10
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.087058000000025 total case time: 0.07718900000004 total array time: 0.097295000000041 switch is quicker by 0.0098689999999848
Output for 4.3.9
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.097061000000009 total case time: 0.086662000000005 total array time: 0.106304 switch is quicker by 0.010399000000004
Output for 4.3.8
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.102166 total case time: 0.089542000000011 total array time: 0.110564 switch is quicker by 0.012623999999987
Output for 4.3.7
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.121478 total case time: 0.10853500000003 total array time: 0.13213600000001 switch is quicker by 0.01294299999997
Output for 4.3.6
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.099540999999999 total case time: 0.089663999999996 total array time: 0.10822800000001 switch is quicker by 0.009877000000003
Output for 4.3.5
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.10056500000001 total case time: 0.090339999999985 total array time: 0.11026899999999 switch is quicker by 0.010225000000024
Output for 4.3.4
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.11493300000002 total case time: 0.10305299999999 total array time: 0.12570299999999 switch is quicker by 0.011880000000021
Output for 4.3.3
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.105301 total case time: 0.095979000000001 total array time: 0.11321300000001 switch is quicker by 0.0093219999999945
Output for 4.3.2
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.11444700000001 total case time: 0.102113 total array time: 0.114799 switch is quicker by 0.012334000000008
Output for 4.3.1
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.13045700000004 total case time: 0.11699000000001 total array time: 0.12887600000001 switch is quicker by 0.013467000000028
Output for 4.3.0
Performance Testing PHP if / else VS switch with 100,000 iterations total if / else time: 0.11829900000001 total case time: 0.10707399999999 total array time: 0.11532400000001 switch is quicker by 0.01122500000002

preferences:
69.4 ms | 886 KiB | 5 Q