3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('NUMBER_OF_THINGS', 10000); class Something{ const SOME_MAX_VALUE = 100; protected $field; public function setField($value){ $this->field = $value; return $this; } public function getField(){ return $this->field; } } $aBunchOfThings = array(); for($i=0; $i<NUMBER_OF_THINGS; $i++){ $aThing = new Something(); $aBunchOfThings[] = $aThing->setField(rand(1, Something::SOME_MAX_VALUE)); } function searchForeach($array, $needle){ $results = array(); foreach($array as $key => $thing){ if($thing->getField() == $needle){ $result[] = $needle; } } return $result; } function searchArrayFilter($array, $needle){ return array_filter($array, function(&$thing) use (&$needle){ return $thing->getField() == $needle; }); } function uniqueForeach($array){ $results = array(); foreach($array as $key => $thing){ $uniqueThing = true; foreach($results as $result){ if($result->getField() == $thing->getField()){ $uniqueThing = false; break; } } if($uniqueThing){ $result[] = $thing; } } return $result; } function uniqueArrayMap($array){ return array_intersect_key($array, array_unique(array_map(function (&$thing) { return $thing->getField(); }, $array))); } $needle = 50; $start = microtime(true); $result = searchForeach($aBunchOfThings, $needle); $durationForeach = microtime(true) - $start; $start = microtime(true); $result = searchArrayFilter($aBunchOfThings, $needle); $durationArrayFilter = microtime(true) - $start; $start = microtime(true); $result = uniqueForeach($aBunchOfThings); $durationUniqueForeach = microtime(true) - $start; $start = microtime(true); $result = uniqueArrayMap($aBunchOfThings); $durationUniqueArrayMap = microtime(true) - $start; echo "Function | Time\n"; echo "-----------------------------------------\n"; echo "searchForeach | $durationForeach\n"; echo "searchArrayFilter | $durationArrayFilter\n"; echo "uniqueForeach | $durationUniqueForeach\n"; echo "uniqueArrayMap | $durationUniqueArrayMap\n"; ?>
based on NaefP
Output for 7.1.0
Function | Time ----------------------------------------- searchForeach | 0.0011708736419678 searchArrayFilter | 0.0023531913757324 uniqueForeach | 0.0015778541564941 uniqueArrayMap | 0.011515140533447
Output for 7.0.14
Function | Time ----------------------------------------- searchForeach | 0.0011467933654785 searchArrayFilter | 0.0023291110992432 uniqueForeach | 0.0015909671783447 uniqueArrayMap | 0.011002063751221
Output for 7.0.8
Function | Time ----------------------------------------- searchForeach | 0.00071406364440918 searchArrayFilter | 0.0015687942504883 uniqueForeach | 0.00091099739074707 uniqueArrayMap | 0.0078239440917969
Output for 7.0.7
Function | Time ----------------------------------------- searchForeach | 0.0011138916015625 searchArrayFilter | 0.0023801326751709 uniqueForeach | 0.0013518333435059 uniqueArrayMap | 0.011582136154175
Output for 7.0.6
Function | Time ----------------------------------------- searchForeach | 0.00090909004211426 searchArrayFilter | 0.0023460388183594 uniqueForeach | 0.001478910446167 uniqueArrayMap | 0.0091011524200439
Output for 7.0.5
Function | Time ----------------------------------------- searchForeach | 0.0007779598236084 searchArrayFilter | 0.00199294090271 uniqueForeach | 0.039828062057495 uniqueArrayMap | 0.0075790882110596
Output for 7.0.4
Function | Time ----------------------------------------- searchForeach | 0.0010349750518799 searchArrayFilter | 0.0026590824127197 uniqueForeach | 0.0011909008026123 uniqueArrayMap | 0.0086688995361328
Output for 7.0.3
Function | Time ----------------------------------------- searchForeach | 0.00090599060058594 searchArrayFilter | 0.0026659965515137 uniqueForeach | 0.0014200210571289 uniqueArrayMap | 0.0098559856414795
Output for 7.0.2
Function | Time ----------------------------------------- searchForeach | 0.0009000301361084 searchArrayFilter | 0.0022029876708984 uniqueForeach | 0.0012450218200684 uniqueArrayMap | 0.0091960430145264
Output for 7.0.1
Function | Time ----------------------------------------- searchForeach | 0.0011899471282959 searchArrayFilter | 0.0029940605163574 uniqueForeach | 0.0015430450439453 uniqueArrayMap | 0.012638807296753
Output for 7.0.0
Function | Time ----------------------------------------- searchForeach | 0.0010859966278076 searchArrayFilter | 0.0027811527252197 uniqueForeach | 0.0014269351959229 uniqueArrayMap | 0.0089821815490723
Output for 5.6.28
Function | Time ----------------------------------------- searchForeach | 0.0036461353302002 searchArrayFilter | 0.005281925201416 uniqueForeach | 0.0048391819000244 uniqueArrayMap | 0.038450956344604
Output for 5.6.23
Function | Time ----------------------------------------- searchForeach | 0.0024788379669189 searchArrayFilter | 0.0036330223083496 uniqueForeach | 0.0035619735717773 uniqueArrayMap | 0.024024963378906
Output for 5.6.22
Function | Time ----------------------------------------- searchForeach | 0.0034539699554443 searchArrayFilter | 0.0050439834594727 uniqueForeach | 0.0047569274902344 uniqueArrayMap | 0.033338069915771
Output for 5.6.21
Function | Time ----------------------------------------- searchForeach | 0.0024750232696533 searchArrayFilter | 0.0034680366516113 uniqueForeach | 0.0034968852996826 uniqueArrayMap | 0.023768186569214
Output for 5.6.20
Function | Time ----------------------------------------- searchForeach | 0.0034589767456055 searchArrayFilter | 0.0039119720458984 uniqueForeach | 0.0039119720458984 uniqueArrayMap | 0.028263092041016
Output for 5.6.19
Function | Time ----------------------------------------- searchForeach | 0.002155065536499 searchArrayFilter | 0.0031399726867676 uniqueForeach | 0.0028159618377686 uniqueArrayMap | 0.02626895904541
Output for 5.6.18
Function | Time ----------------------------------------- searchForeach | 0.003964900970459 searchArrayFilter | 0.0051708221435547 uniqueForeach | 0.0049560070037842 uniqueArrayMap | 0.03380298614502
Output for 5.6.17
Function | Time ----------------------------------------- searchForeach | 0.0026309490203857 searchArrayFilter | 0.00382399559021 uniqueForeach | 0.0041928291320801 uniqueArrayMap | 0.028396844863892
Output for 5.6.16
Function | Time ----------------------------------------- searchForeach | 0.0037670135498047 searchArrayFilter | 0.0053000450134277 uniqueForeach | 0.0050721168518066 uniqueArrayMap | 0.035491943359375
Output for 5.6.15
Function | Time ----------------------------------------- searchForeach | 0.002453088760376 searchArrayFilter | 0.0034580230712891 uniqueForeach | 0.0034351348876953 uniqueArrayMap | 0.025696992874146
Output for 5.6.14
Function | Time ----------------------------------------- searchForeach | 0.0029799938201904 searchArrayFilter | 0.004356861114502 uniqueForeach | 0.0047180652618408 uniqueArrayMap | 0.030831098556519
Output for 5.6.13
Function | Time ----------------------------------------- searchForeach | 0.0027639865875244 searchArrayFilter | 0.003864049911499 uniqueForeach | 0.003715991973877 uniqueArrayMap | 0.026489019393921
Output for 5.6.12
Function | Time ----------------------------------------- searchForeach | 0.0031778812408447 searchArrayFilter | 0.0044732093811035 uniqueForeach | 0.0038459300994873 uniqueArrayMap | 0.032680988311768
Output for 5.6.11
Function | Time ----------------------------------------- searchForeach | 0.0035347938537598 searchArrayFilter | 0.0051789283752441 uniqueForeach | 0.0048749446868896 uniqueArrayMap | 0.035384893417358
Output for 5.6.10
Function | Time ----------------------------------------- searchForeach | 0.003180980682373 searchArrayFilter | 0.0044710636138916 uniqueForeach | 0.0037128925323486 uniqueArrayMap | 0.027306079864502
Output for 5.6.9
Function | Time ----------------------------------------- searchForeach | 0.0034708976745605 searchArrayFilter | 0.0048680305480957 uniqueForeach | 0.0039589405059814 uniqueArrayMap | 0.034317016601562
Output for 5.6.8
Function | Time ----------------------------------------- searchForeach | 0.0029940605163574 searchArrayFilter | 0.0039451122283936 uniqueForeach | 0.0039350986480713 uniqueArrayMap | 0.027086019515991
Output for 5.6.7
Function | Time ----------------------------------------- searchForeach | 0.0028998851776123 searchArrayFilter | 0.0042440891265869 uniqueForeach | 0.0043001174926758 uniqueArrayMap | 0.029447793960571
Output for 5.6.6
Function | Time ----------------------------------------- searchForeach | 0.0033669471740723 searchArrayFilter | 0.0049800872802734 uniqueForeach | 0.0046150684356689 uniqueArrayMap | 0.031285047531128
Output for 5.6.5
Function | Time ----------------------------------------- searchForeach | 0.0032839775085449 searchArrayFilter | 0.0038659572601318 uniqueForeach | 0.0038721561431885 uniqueArrayMap | 0.027663946151733
Output for 5.6.4
Function | Time ----------------------------------------- searchForeach | 0.0031311511993408 searchArrayFilter | 0.0045719146728516 uniqueForeach | 0.0044558048248291 uniqueArrayMap | 0.029793977737427
Output for 5.6.3
Function | Time ----------------------------------------- searchForeach | 0.0029549598693848 searchArrayFilter | 0.0041050910949707 uniqueForeach | 0.0037679672241211 uniqueArrayMap | 0.030618190765381
Output for 5.6.2
Function | Time ----------------------------------------- searchForeach | 0.0039300918579102 searchArrayFilter | 0.0052230358123779 uniqueForeach | 0.00502610206604 uniqueArrayMap | 0.037041902542114
Output for 5.6.1
Function | Time ----------------------------------------- searchForeach | 0.0034260749816895 searchArrayFilter | 0.0047669410705566 uniqueForeach | 0.0044040679931641 uniqueArrayMap | 0.028570890426636
Output for 5.6.0
Function | Time ----------------------------------------- searchForeach | 0.003587007522583 searchArrayFilter | 0.0045101642608643 uniqueForeach | 0.0044829845428467 uniqueArrayMap | 0.034653902053833
Output for 5.5.37
Function | Time ----------------------------------------- searchForeach | 0.003162145614624 searchArrayFilter | 0.0046310424804688 uniqueForeach | 0.0043618679046631 uniqueArrayMap | 0.030032873153687
Output for 5.5.36
Function | Time ----------------------------------------- searchForeach | 0.0033340454101562 searchArrayFilter | 0.0046749114990234 uniqueForeach | 0.0046820640563965 uniqueArrayMap | 0.030177116394043
Output for 5.5.35
Function | Time ----------------------------------------- searchForeach | 0.0036580562591553 searchArrayFilter | 0.0050661563873291 uniqueForeach | 0.0050230026245117 uniqueArrayMap | 0.035006046295166
Output for 5.5.34
Function | Time ----------------------------------------- searchForeach | 0.0029151439666748 searchArrayFilter | 0.0040528774261475 uniqueForeach | 0.0040359497070312 uniqueArrayMap | 0.031413078308105
Output for 5.5.33
Function | Time ----------------------------------------- searchForeach | 0.0032110214233398 searchArrayFilter | 0.0043370723724365 uniqueForeach | 0.004133939743042 uniqueArrayMap | 0.033483028411865
Output for 5.5.32
Function | Time ----------------------------------------- searchForeach | 0.0031650066375732 searchArrayFilter | 0.0044600963592529 uniqueForeach | 0.004472017288208 uniqueArrayMap | 0.028753042221069
Output for 5.5.31
Function | Time ----------------------------------------- searchForeach | 0.0034110546112061 searchArrayFilter | 0.0043070316314697 uniqueForeach | 0.0040819644927979 uniqueArrayMap | 0.029042959213257
Output for 5.5.30
Function | Time ----------------------------------------- searchForeach | 0.0032808780670166 searchArrayFilter | 0.0046920776367188 uniqueForeach | 0.004249095916748 uniqueArrayMap | 0.025829076766968
Output for 5.5.29
Function | Time ----------------------------------------- searchForeach | 0.0029230117797852 searchArrayFilter | 0.0040519237518311 uniqueForeach | 0.0041089057922363 uniqueArrayMap | 0.029230117797852
Output for 5.5.28
Function | Time ----------------------------------------- searchForeach | 0.0023369789123535 searchArrayFilter | 0.0032498836517334 uniqueForeach | 0.0032970905303955 uniqueArrayMap | 0.024544954299927
Output for 5.5.27
Function | Time ----------------------------------------- searchForeach | 0.0037651062011719 searchArrayFilter | 0.0052759647369385 uniqueForeach | 0.0051519870758057 uniqueArrayMap | 0.035835027694702
Output for 5.5.26
Function | Time ----------------------------------------- searchForeach | 0.0031859874725342 searchArrayFilter | 0.0044488906860352 uniqueForeach | 0.0044050216674805 uniqueArrayMap | 0.031798124313354
Output for 5.5.25
Function | Time ----------------------------------------- searchForeach | 0.0034191608428955 searchArrayFilter | 0.0047049522399902 uniqueForeach | 0.0044469833374023 uniqueArrayMap | 0.029109954833984
Output for 5.5.24
Function | Time ----------------------------------------- searchForeach | 0.0027949810028076 searchArrayFilter | 0.0038809776306152 uniqueForeach | 0.0040960311889648 uniqueArrayMap | 0.028094053268433
Output for 5.5.23
Function | Time ----------------------------------------- searchForeach | 0.0035810470581055 searchArrayFilter | 0.0051641464233398 uniqueForeach | 0.0040550231933594 uniqueArrayMap | 0.028577089309692
Output for 5.5.22
Function | Time ----------------------------------------- searchForeach | 0.0034689903259277 searchArrayFilter | 0.0052239894866943 uniqueForeach | 0.0044050216674805 uniqueArrayMap | 0.032888889312744
Output for 5.5.21
Function | Time ----------------------------------------- searchForeach | 0.0030770301818848 searchArrayFilter | 0.0042240619659424 uniqueForeach | 0.0044338703155518 uniqueArrayMap | 0.031713008880615
Output for 5.5.20
Function | Time ----------------------------------------- searchForeach | 0.0037539005279541 searchArrayFilter | 0.0050628185272217 uniqueForeach | 0.0052280426025391 uniqueArrayMap | 0.035614967346191
Output for 5.5.19
Function | Time ----------------------------------------- searchForeach | 0.0038881301879883 searchArrayFilter | 0.0053360462188721 uniqueForeach | 0.0052070617675781 uniqueArrayMap | 0.03606390953064
Output for 5.5.18
Function | Time ----------------------------------------- searchForeach | 0.0023858547210693 searchArrayFilter | 0.0033588409423828 uniqueForeach | 0.0035340785980225 uniqueArrayMap | 0.024021148681641
Output for 5.5.16
Function | Time ----------------------------------------- searchForeach | 0.0027999877929688 searchArrayFilter | 0.0039889812469482 uniqueForeach | 0.0043509006500244 uniqueArrayMap | 0.029798030853271
Output for 5.5.15
Function | Time ----------------------------------------- searchForeach | 0.0037498474121094 searchArrayFilter | 0.0054028034210205 uniqueForeach | 0.0051848888397217 uniqueArrayMap | 0.035540103912354
Output for 5.5.14
Function | Time ----------------------------------------- searchForeach | 0.0030510425567627 searchArrayFilter | 0.0040569305419922 uniqueForeach | 0.0041828155517578 uniqueArrayMap | 0.028958797454834
Output for 5.5.13
Function | Time ----------------------------------------- searchForeach | 0.0028650760650635 searchArrayFilter | 0.004019021987915 uniqueForeach | 0.0039839744567871 uniqueArrayMap | 0.027245044708252
Output for 5.5.12
Function | Time ----------------------------------------- searchForeach | 0.0026979446411133 searchArrayFilter | 0.0036880970001221 uniqueForeach | 0.003770112991333 uniqueArrayMap | 0.027514934539795
Output for 5.5.11
Function | Time ----------------------------------------- searchForeach | 0.0026330947875977 searchArrayFilter | 0.0036659240722656 uniqueForeach | 0.0036358833312988 uniqueArrayMap | 0.025592088699341
Output for 5.5.10
Function | Time ----------------------------------------- searchForeach | 0.0032000541687012 searchArrayFilter | 0.004486083984375 uniqueForeach | 0.0045897960662842 uniqueArrayMap | 0.032989025115967
Output for 5.5.9
Function | Time ----------------------------------------- searchForeach | 0.0036249160766602 searchArrayFilter | 0.0045838356018066 uniqueForeach | 0.0044088363647461 uniqueArrayMap | 0.036922931671143
Output for 5.5.8
Function | Time ----------------------------------------- searchForeach | 0.0031211376190186 searchArrayFilter | 0.004525899887085 uniqueForeach | 0.0040371417999268 uniqueArrayMap | 0.034541130065918
Output for 5.5.7
Function | Time ----------------------------------------- searchForeach | 0.0026259422302246 searchArrayFilter | 0.0035040378570557 uniqueForeach | 0.0035851001739502 uniqueArrayMap | 0.029084920883179
Output for 5.5.6
Function | Time ----------------------------------------- searchForeach | 0.0023190975189209 searchArrayFilter | 0.0032129287719727 uniqueForeach | 0.0032072067260742 uniqueArrayMap | 0.024190902709961
Output for 5.5.5
Function | Time ----------------------------------------- searchForeach | 0.0029308795928955 searchArrayFilter | 0.0040521621704102 uniqueForeach | 0.0040080547332764 uniqueArrayMap | 0.028856039047241
Output for 5.5.4
Function | Time ----------------------------------------- searchForeach | 0.0022759437561035 searchArrayFilter | 0.0032250881195068 uniqueForeach | 0.0032870769500732 uniqueArrayMap | 0.025264978408813
Output for 5.5.3
Function | Time ----------------------------------------- searchForeach | 0.0024161338806152 searchArrayFilter | 0.003309965133667 uniqueForeach | 0.0034239292144775 uniqueArrayMap | 0.026556968688965
Output for 5.5.2
Function | Time ----------------------------------------- searchForeach | 0.0024399757385254 searchArrayFilter | 0.0034189224243164 uniqueForeach | 0.0036370754241943 uniqueArrayMap | 0.0244460105896
Output for 5.5.1
Function | Time ----------------------------------------- searchForeach | 0.0026259422302246 searchArrayFilter | 0.0040440559387207 uniqueForeach | 0.0038628578186035 uniqueArrayMap | 0.031117916107178
Output for 5.5.0
Function | Time ----------------------------------------- searchForeach | 0.0026669502258301 searchArrayFilter | 0.003978967666626 uniqueForeach | 0.003633975982666 uniqueArrayMap | 0.025115013122559
Output for 5.4.45
Function | Time ----------------------------------------- searchForeach | 0.0031781196594238 searchArrayFilter | 0.0044379234313965 uniqueForeach | 0.0043702125549316 uniqueArrayMap | 0.030207872390747
Output for 5.4.44
Function | Time ----------------------------------------- searchForeach | 0.0033600330352783 searchArrayFilter | 0.0045790672302246 uniqueForeach | 0.004626989364624 uniqueArrayMap | 0.029084920883179
Output for 5.4.43
Function | Time ----------------------------------------- searchForeach | 0.0030560493469238 searchArrayFilter | 0.0047459602355957 uniqueForeach | 0.0039200782775879 uniqueArrayMap | 0.032346963882446
Output for 5.4.42
Function | Time ----------------------------------------- searchForeach | 0.0035359859466553 searchArrayFilter | 0.0048890113830566 uniqueForeach | 0.0048179626464844 uniqueArrayMap | 0.033606052398682
Output for 5.4.41
Function | Time ----------------------------------------- searchForeach | 0.0028228759765625 searchArrayFilter | 0.0032999515533447 uniqueForeach | 0.0034449100494385 uniqueArrayMap | 0.026017189025879
Output for 5.4.40
Function | Time ----------------------------------------- searchForeach | 0.0036020278930664 searchArrayFilter | 0.0052149295806885 uniqueForeach | 0.0047218799591064 uniqueArrayMap | 0.038783073425293
Output for 5.4.39
Function | Time ----------------------------------------- searchForeach | 0.003507137298584 searchArrayFilter | 0.0047509670257568 uniqueForeach | 0.004871129989624 uniqueArrayMap | 0.030241966247559
Output for 5.4.38
Function | Time ----------------------------------------- searchForeach | 0.0024368762969971 searchArrayFilter | 0.0033888816833496 uniqueForeach | 0.0035080909729004 uniqueArrayMap | 0.023359060287476
Output for 5.4.37
Function | Time ----------------------------------------- searchForeach | 0.0024421215057373 searchArrayFilter | 0.0034818649291992 uniqueForeach | 0.0037739276885986 uniqueArrayMap | 0.027485132217407
Output for 5.4.36
Function | Time ----------------------------------------- searchForeach | 0.0037369728088379 searchArrayFilter | 0.0052049160003662 uniqueForeach | 0.0051131248474121 uniqueArrayMap | 0.033382892608643
Output for 5.4.35
Function | Time ----------------------------------------- searchForeach | 0.0040490627288818 searchArrayFilter | 0.0047259330749512 uniqueForeach | 0.0046660900115967 uniqueArrayMap | 0.036415100097656
Output for 5.4.34
Function | Time ----------------------------------------- searchForeach | 0.0038759708404541 searchArrayFilter | 0.0044600963592529 uniqueForeach | 0.0043799877166748 uniqueArrayMap | 0.027316093444824
Output for 5.4.32
Function | Time ----------------------------------------- searchForeach | 0.002357006072998 searchArrayFilter | 0.00325608253479 uniqueForeach | 0.0034821033477783 uniqueArrayMap | 0.023643016815186
Output for 5.4.31
Function | Time ----------------------------------------- searchForeach | 0.0032498836517334 searchArrayFilter | 0.0042471885681152 uniqueForeach | 0.0044548511505127 uniqueArrayMap | 0.029584884643555
Output for 5.4.30
Function | Time ----------------------------------------- searchForeach | 0.003899097442627 searchArrayFilter | 0.0052311420440674 uniqueForeach | 0.0052609443664551 uniqueArrayMap | 0.03423810005188
Output for 5.4.29
Function | Time ----------------------------------------- searchForeach | 0.003140926361084 searchArrayFilter | 0.0043401718139648 uniqueForeach | 0.0043129920959473 uniqueArrayMap | 0.026436805725098
Output for 5.4.28
Function | Time ----------------------------------------- searchForeach | 0.002899169921875 searchArrayFilter | 0.004019021987915 uniqueForeach | 0.0041649341583252 uniqueArrayMap | 0.027318954467773
Output for 5.4.27
Function | Time ----------------------------------------- searchForeach | 0.0032279491424561 searchArrayFilter | 0.0044639110565186 uniqueForeach | 0.0045299530029297 uniqueArrayMap | 0.031244993209839
Output for 5.4.26
Function | Time ----------------------------------------- searchForeach | 0.0036110877990723 searchArrayFilter | 0.0051369667053223 uniqueForeach | 0.0041451454162598 uniqueArrayMap | 0.029774904251099
Output for 5.4.25
Function | Time ----------------------------------------- searchForeach | 0.0030131340026855 searchArrayFilter | 0.0041389465332031 uniqueForeach | 0.0042970180511475 uniqueArrayMap | 0.028471946716309
Output for 5.4.24
Function | Time ----------------------------------------- searchForeach | 0.0022408962249756 searchArrayFilter | 0.0031948089599609 uniqueForeach | 0.0032048225402832 uniqueArrayMap | 0.023579835891724
Output for 5.4.23
Function | Time ----------------------------------------- searchForeach | 0.0022380352020264 searchArrayFilter | 0.0032229423522949 uniqueForeach | 0.0032248497009277 uniqueArrayMap | 0.024125099182129
Output for 5.4.22
Function | Time ----------------------------------------- searchForeach | 0.0031430721282959 searchArrayFilter | 0.0044240951538086 uniqueForeach | 0.0042998790740967 uniqueArrayMap | 0.031816005706787
Output for 5.4.21
Function | Time ----------------------------------------- searchForeach | 0.0027730464935303 searchArrayFilter | 0.003896951675415 uniqueForeach | 0.0037779808044434 uniqueArrayMap | 0.031440019607544
Output for 5.4.20
Function | Time ----------------------------------------- searchForeach | 0.0022501945495605 searchArrayFilter | 0.0031850337982178 uniqueForeach | 0.0031428337097168 uniqueArrayMap | 0.024610996246338
Output for 5.4.19
Function | Time ----------------------------------------- searchForeach | 0.0024979114532471 searchArrayFilter | 0.0035500526428223 uniqueForeach | 0.0038020610809326 uniqueArrayMap | 0.027611970901489
Output for 5.4.18
Function | Time ----------------------------------------- searchForeach | 0.0024821758270264 searchArrayFilter | 0.0034129619598389 uniqueForeach | 0.0032439231872559 uniqueArrayMap | 0.024950981140137
Output for 5.4.17
Function | Time ----------------------------------------- searchForeach | 0.0024111270904541 searchArrayFilter | 0.0033690929412842 uniqueForeach | 0.0033597946166992 uniqueArrayMap | 0.024158000946045
Output for 5.4.16
Function | Time ----------------------------------------- searchForeach | 0.0019779205322266 searchArrayFilter | 0.0027589797973633 uniqueForeach | 0.0028250217437744 uniqueArrayMap | 0.022077083587646
Output for 5.4.15
Function | Time ----------------------------------------- searchForeach | 0.0021669864654541 searchArrayFilter | 0.0031180381774902 uniqueForeach | 0.003026008605957 uniqueArrayMap | 0.025133848190308
Output for 5.4.14
Function | Time ----------------------------------------- searchForeach | 0.0022480487823486 searchArrayFilter | 0.0032138824462891 uniqueForeach | 0.0028297901153564 uniqueArrayMap | 0.024808883666992
Output for 5.4.13
Function | Time ----------------------------------------- searchForeach | 0.0021181106567383 searchArrayFilter | 0.0031499862670898 uniqueForeach | 0.002877950668335 uniqueArrayMap | 0.023241996765137
Output for 5.4.12
Function | Time ----------------------------------------- searchForeach | 0.0018789768218994 searchArrayFilter | 0.0029151439666748 uniqueForeach | 0.002687931060791 uniqueArrayMap | 0.020509004592896
Output for 5.4.11
Function | Time ----------------------------------------- searchForeach | 0.002100944519043 searchArrayFilter | 0.0030488967895508 uniqueForeach | 0.0029349327087402 uniqueArrayMap | 0.022444009780884
Output for 5.4.10
Function | Time ----------------------------------------- searchForeach | 0.0031261444091797 searchArrayFilter | 0.0044770240783691 uniqueForeach | 0.0040879249572754 uniqueArrayMap | 0.031051158905029
Output for 5.4.9
Function | Time ----------------------------------------- searchForeach | 0.0021131038665771 searchArrayFilter | 0.003032922744751 uniqueForeach | 0.0028600692749023 uniqueArrayMap | 0.023855924606323
Output for 5.4.8
Function | Time ----------------------------------------- searchForeach | 0.002755880355835 searchArrayFilter | 0.0043280124664307 uniqueForeach | 0.0042409896850586 uniqueArrayMap | 0.024471998214722
Output for 5.4.7
Function | Time ----------------------------------------- searchForeach | 0.0029292106628418 searchArrayFilter | 0.0043039321899414 uniqueForeach | 0.0039939880371094 uniqueArrayMap | 0.029309034347534
Output for 5.4.6
Function | Time ----------------------------------------- searchForeach | 0.0019550323486328 searchArrayFilter | 0.0030841827392578 uniqueForeach | 0.002964973449707 uniqueArrayMap | 0.021842002868652
Output for 5.4.5
Function | Time ----------------------------------------- searchForeach | 0.0021378993988037 searchArrayFilter | 0.00307297706604 uniqueForeach | 0.0029129981994629 uniqueArrayMap | 0.022799968719482
Output for 5.4.4
Function | Time ----------------------------------------- searchForeach | 0.0021820068359375 searchArrayFilter | 0.0030460357666016 uniqueForeach | 0.0028839111328125 uniqueArrayMap | 0.021911144256592
Output for 5.4.3
Function | Time ----------------------------------------- searchForeach | 0.0030748844146729 searchArrayFilter | 0.0043320655822754 uniqueForeach | 0.0039329528808594 uniqueArrayMap | 0.028769016265869
Output for 5.4.2
Function | Time ----------------------------------------- searchForeach | 0.0028297901153564 searchArrayFilter | 0.004551887512207 uniqueForeach | 0.004054069519043 uniqueArrayMap | 0.027331113815308
Output for 5.4.1
Function | Time ----------------------------------------- searchForeach | 0.0037200450897217 searchArrayFilter | 0.0052039623260498 uniqueForeach | 0.0049839019775391 uniqueArrayMap | 0.033677101135254
Output for 5.4.0
Function | Time ----------------------------------------- searchForeach | 0.0030639171600342 searchArrayFilter | 0.004478931427002 uniqueForeach | 0.0042338371276855 uniqueArrayMap | 0.032374858856201
Output for 5.3.29
Function | Time ----------------------------------------- searchForeach | 0.0049631595611572 searchArrayFilter | 0.0065488815307617 uniqueForeach | 0.0054588317871094 uniqueArrayMap | 0.035837173461914
Output for 5.3.28
Function | Time ----------------------------------------- searchForeach | 0.00341796875 searchArrayFilter | 0.0045061111450195 uniqueForeach | 0.0038831233978271 uniqueArrayMap | 0.030065059661865
Output for 5.3.27
Function | Time ----------------------------------------- searchForeach | 0.003119945526123 searchArrayFilter | 0.0042340755462646 uniqueForeach | 0.0035037994384766 uniqueArrayMap | 0.02509593963623
Output for 5.3.26
Function | Time ----------------------------------------- searchForeach | 0.004194974899292 searchArrayFilter | 0.0057611465454102 uniqueForeach | 0.0042979717254639 uniqueArrayMap | 0.03068208694458
Output for 5.3.25
Function | Time ----------------------------------------- searchForeach | 0.0030741691589355 searchArrayFilter | 0.0041689872741699 uniqueForeach | 0.003364086151123 uniqueArrayMap | 0.025919914245605
Output for 5.3.24
Function | Time ----------------------------------------- searchForeach | 0.0030508041381836 searchArrayFilter | 0.0042009353637695 uniqueForeach | 0.0034129619598389 uniqueArrayMap | 0.024859189987183
Output for 5.3.23
Function | Time ----------------------------------------- searchForeach | 0.0031609535217285 searchArrayFilter | 0.0043292045593262 uniqueForeach | 0.0034658908843994 uniqueArrayMap | 0.025479078292847
Output for 5.3.22
Function | Time ----------------------------------------- searchForeach | 0.003244161605835 searchArrayFilter | 0.0048198699951172 uniqueForeach | 0.0036208629608154 uniqueArrayMap | 0.027733087539673
Output for 5.3.21
Function | Time ----------------------------------------- searchForeach | 0.0033829212188721 searchArrayFilter | 0.0047080516815186 uniqueForeach | 0.0038809776306152 uniqueArrayMap | 0.029732227325439
Output for 5.3.20
Function | Time ----------------------------------------- searchForeach | 0.0049259662628174 searchArrayFilter | 0.0039210319519043 uniqueForeach | 0.0035710334777832 uniqueArrayMap | 0.027784109115601
Output for 5.3.19
Function | Time ----------------------------------------- searchForeach | 0.0029349327087402 searchArrayFilter | 0.0039069652557373 uniqueForeach | 0.0038130283355713 uniqueArrayMap | 0.025245904922485
Output for 5.3.18
Function | Time ----------------------------------------- searchForeach | 0.0038590431213379 searchArrayFilter | 0.0051250457763672 uniqueForeach | 0.004040002822876 uniqueArrayMap | 0.034554958343506
Output for 5.3.17
Function | Time ----------------------------------------- searchForeach | 0.0031490325927734 searchArrayFilter | 0.0048270225524902 uniqueForeach | 0.0041050910949707 uniqueArrayMap | 0.028902053833008
Output for 5.3.16
Function | Time ----------------------------------------- searchForeach | 0.0038130283355713 searchArrayFilter | 0.004518985748291 uniqueForeach | 0.0034670829772949 uniqueArrayMap | 0.025557041168213
Output for 5.3.15
Function | Time ----------------------------------------- searchForeach | 0.0039839744567871 searchArrayFilter | 0.0053610801696777 uniqueForeach | 0.0042879581451416 uniqueArrayMap | 0.03065013885498
Output for 5.3.14
Function | Time ----------------------------------------- searchForeach | 0.0032510757446289 searchArrayFilter | 0.0043468475341797 uniqueForeach | 0.0033528804779053 uniqueArrayMap | 0.027088165283203
Output for 5.3.13
Function | Time ----------------------------------------- searchForeach | 0.004727840423584 searchArrayFilter | 0.0062370300292969 uniqueForeach | 0.005183219909668 uniqueArrayMap | 0.033929824829102
Output for 5.3.12
Function | Time ----------------------------------------- searchForeach | 0.0043010711669922 searchArrayFilter | 0.0055420398712158 uniqueForeach | 0.0048410892486572 uniqueArrayMap | 0.03043007850647
Output for 5.3.11
Function | Time ----------------------------------------- searchForeach | 0.0056679248809814 searchArrayFilter | 0.0071060657501221 uniqueForeach | 0.0061891078948975 uniqueArrayMap | 0.04036808013916
Output for 5.3.10
Function | Time ----------------------------------------- searchForeach | 0.0045568943023682 searchArrayFilter | 0.0060648918151855 uniqueForeach | 0.0052249431610107 uniqueArrayMap | 0.035202026367188
Output for 5.3.9
Function | Time ----------------------------------------- searchForeach | 0.0047690868377686 searchArrayFilter | 0.0060901641845703 uniqueForeach | 0.0052859783172607 uniqueArrayMap | 0.032891035079956
Output for 5.3.8
Function | Time ----------------------------------------- searchForeach | 0.004878044128418 searchArrayFilter | 0.0064640045166016 uniqueForeach | 0.0053479671478271 uniqueArrayMap | 0.03646183013916
Output for 5.3.7
Function | Time ----------------------------------------- searchForeach | 0.0048198699951172 searchArrayFilter | 0.0061359405517578 uniqueForeach | 0.0052449703216553 uniqueArrayMap | 0.034515857696533
Output for 5.3.6
Function | Time ----------------------------------------- searchForeach | 0.0046689510345459 searchArrayFilter | 0.0060510635375977 uniqueForeach | 0.0051870346069336 uniqueArrayMap | 0.033470869064331
Output for 5.3.5
Function | Time ----------------------------------------- searchForeach | 0.0038609504699707 searchArrayFilter | 0.0049440860748291 uniqueForeach | 0.0043728351593018 uniqueArrayMap | 0.029237031936646
Output for 5.3.4
Function | Time ----------------------------------------- searchForeach | 0.0051920413970947 searchArrayFilter | 0.0068120956420898 uniqueForeach | 0.0057759284973145 uniqueArrayMap | 0.037810087203979
Output for 5.3.3
Function | Time ----------------------------------------- searchForeach | 0.0049171447753906 searchArrayFilter | 0.0064120292663574 uniqueForeach | 0.0053651332855225 uniqueArrayMap | 0.03855299949646
Output for 5.3.2
Function | Time ----------------------------------------- searchForeach | 0.0037291049957275 searchArrayFilter | 0.0045249462127686 uniqueForeach | 0.004025936126709 uniqueArrayMap | 0.026556968688965
Output for 5.3.1
Function | Time ----------------------------------------- searchForeach | 0.006721019744873 searchArrayFilter | 0.0074319839477539 uniqueForeach | 0.0058739185333252 uniqueArrayMap | 0.044574975967407
Output for 5.3.0
Function | Time ----------------------------------------- searchForeach | 0.0057480335235596 searchArrayFilter | 0.006397008895874 uniqueForeach | 0.0055661201477051 uniqueArrayMap | 0.032386064529419
Output for 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/7ckVF on line 34
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/7ckVF on line 34
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/7ckVF on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/7ckVF on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/7ckVF on line 5
Process exited with code 255.