3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //Access every element once using array_filter() $objectArray = []; $objectNames = []; for($i = 0; $i < 1000; $i ++){ $objName = 'object_name_' . ($i + 1); $objectNames[] = $objName; $obj = new stdClass(); $obj->name = $objName; $obj->description = 'test description'; $obj->accessed = 0; $objectArray[] = $obj; } $start = microtime(true); foreach($objectNames as $name){ $iterations = getObjectWithArray_Filter($name, $objectArray); } $end = microtime(true); $taken = $end - $start; echo $iterations . " iterations using array_filter() in $taken seconds<br/>\n"; //Access every element once using foreach(){} $objectArray = []; $objectNames = []; for($i = 0; $i < 1000; $i ++){ $objName = 'object_name_' . ($i + 1); $objectNames[] = $objName; $obj = new stdClass(); $obj->name = $objName; $obj->description = 'test description'; $obj->accessed = 0; $objectArray[] = $obj; } $start = microtime(true); foreach($objectNames as $name){ $iterations = getObjectWithForeach($name, $objectArray); } $end = microtime(true); $taken = $end - $start; echo $iterations . " iterations using foreach(){} in $taken seconds<br/>\n"; //Access every element once using Associative array $objectArray = []; $objectNames = []; for($i = 0; $i < 1000; $i ++){ $objName = 'object_name_' . ($i + 1); $objectNames[] = $objName; $obj = new stdClass(); $obj->name = $objName; $obj->description = 'test description'; $obj->accessed = 0; $objectArray[] = $obj; } $associativeArray = []; $start = microtime(true); foreach($objectArray as $object){ $associativeArray[$object->name] = $object; $object->accessed ++; } foreach($objectNames as $name){ $iterations = getObjectFromAssociativeArray($objName, $associativeArray); } $end = microtime(true); $taken = $end - $start; echo $iterations . " iterations using associative array{} in $taken seconds<br/>\n"; //================================================================= function getObjectWithArray_Filter($objectName, array $objectArray){ $myobjects = array_filter($objectArray, function($e) use($objectName) { $e->accessed ++; return strcmp($e->name, $objectName) == 0; }); $iterations = 0; foreach($objectArray as $object){ $iterations += $object->accessed; } return $iterations; } function getObjectWithForeach($objectName, array $objectArray){ $iterations = 0; $found = false; $count = 0; while(!$found){ $objectArray[$count]->accessed ++; if($objectArray[$count]->name === $objectName){ $found = true; } $count ++; } foreach($objectArray as $object){ $iterations += $object->accessed; } return $iterations; } function getObjectFromAssociativeArray($objectName, array $objectArray){ $iterations = 0; if($objectName === $objectArray[$objectName]->name){ $objectArray[$objectName]->accessed ++; } foreach($objectArray as $object){ $iterations += $object->accessed; } return $iterations; }
Output for 7.1.0
1000000 iterations using array_filter() in -0.18074011802673 seconds<br/> 500500 iterations using foreach(){} in -0.060266017913818 seconds<br/> 2000 iterations using associative array{} in -0.035714149475098 seconds<br/>
Output for 7.0.14
1000000 iterations using array_filter() in 0.2122118473053 seconds<br/> 500500 iterations using foreach(){} in 0.031898975372314 seconds<br/> 2000 iterations using associative array{} in -0.034801006317139 seconds<br/>
Output for 7.0.7
1000000 iterations using array_filter() in 0.18667316436768 seconds<br/> 500500 iterations using foreach(){} in 0.065011978149414 seconds<br/> 2000 iterations using associative array{} in 0.038283824920654 seconds<br/>
Output for 7.0.6
1000000 iterations using array_filter() in 0.21962881088257 seconds<br/> 500500 iterations using foreach(){} in 0.064401865005493 seconds<br/> 2000 iterations using associative array{} in 0.03749680519104 seconds<br/>
Output for 7.0.5
1000000 iterations using array_filter() in 0.22146987915039 seconds<br/> 500500 iterations using foreach(){} in 0.064213991165161 seconds<br/> 2000 iterations using associative array{} in 0.04234504699707 seconds<br/>
Output for 7.0.4
1000000 iterations using array_filter() in 0.20970916748047 seconds<br/> 500500 iterations using foreach(){} in 0.065367937088013 seconds<br/> 2000 iterations using associative array{} in 0.038248062133789 seconds<br/>
Output for 7.0.3
1000000 iterations using array_filter() in 0.20530319213867 seconds<br/> 500500 iterations using foreach(){} in 0.059201002120972 seconds<br/> 2000 iterations using associative array{} in 0.03160285949707 seconds<br/>
Output for 7.0.2
1000000 iterations using array_filter() in 0.21242499351501 seconds<br/> 500500 iterations using foreach(){} in 0.065145015716553 seconds<br/> 2000 iterations using associative array{} in 0.037925958633423 seconds<br/>
Output for 7.0.1
1000000 iterations using array_filter() in 0.20810413360596 seconds<br/> 500500 iterations using foreach(){} in 0.064175844192505 seconds<br/> 2000 iterations using associative array{} in 0.038466930389404 seconds<br/>
Output for 7.0.0
1000000 iterations using array_filter() in 0.21861386299133 seconds<br/> 500500 iterations using foreach(){} in 0.064934015274048 seconds<br/> 2000 iterations using associative array{} in 0.038747072219849 seconds<br/>
Output for hhvm-3.12.0
1000000 iterations using array_filter() in 0.47651290893555 seconds<br/> 500500 iterations using foreach(){} in 0.23764896392822 seconds<br/> 2000 iterations using associative array{} in 0.10322308540344 seconds<br/>
Output for hhvm-3.10.0
1000000 iterations using array_filter() in 0.55200695991516 seconds<br/> 500500 iterations using foreach(){} in 0.24210000038147 seconds<br/> 2000 iterations using associative array{} in 0.12288403511047 seconds<br/>
Output for 5.6.28
1000000 iterations using array_filter() in -0.13740491867065 seconds<br/> 500500 iterations using foreach(){} in -0.15095496177673 seconds<br/> 2000 iterations using associative array{} in -0.094873905181885 seconds<br/>
Output for 5.6.22
1000000 iterations using array_filter() in 0.46286606788635 seconds<br/> 500500 iterations using foreach(){} in 0.18566799163818 seconds<br/> 2000 iterations using associative array{} in 0.12236499786377 seconds<br/>
Output for 5.6.21
1000000 iterations using array_filter() in 0.4603009223938 seconds<br/> 500500 iterations using foreach(){} in 0.18865895271301 seconds<br/> 2000 iterations using associative array{} in 0.1247718334198 seconds<br/>
Output for 5.6.20
1000000 iterations using array_filter() in 0.45004796981812 seconds<br/> 500500 iterations using foreach(){} in 0.17537713050842 seconds<br/> 2000 iterations using associative array{} in 0.097203969955444 seconds<br/>
Output for 5.6.19
1000000 iterations using array_filter() in 0.44383001327515 seconds<br/> 500500 iterations using foreach(){} in 0.21970987319946 seconds<br/> 2000 iterations using associative array{} in 0.12358093261719 seconds<br/>
Output for 5.6.18
1000000 iterations using array_filter() in 0.44185304641724 seconds<br/> 500500 iterations using foreach(){} in 0.17445802688599 seconds<br/> 2000 iterations using associative array{} in 0.11290597915649 seconds<br/>
Output for 5.6.17
1000000 iterations using array_filter() in 0.45249009132385 seconds<br/> 500500 iterations using foreach(){} in 0.17748403549194 seconds<br/> 2000 iterations using associative array{} in 0.11651086807251 seconds<br/>
Output for 5.6.16
1000000 iterations using array_filter() in 0.47909808158875 seconds<br/> 500500 iterations using foreach(){} in 0.20143699645996 seconds<br/> 2000 iterations using associative array{} in 0.11157202720642 seconds<br/>
Output for 5.6.15
1000000 iterations using array_filter() in 0.46441388130188 seconds<br/> 500500 iterations using foreach(){} in 0.17908406257629 seconds<br/> 2000 iterations using associative array{} in 0.11483097076416 seconds<br/>
Output for 5.6.14
1000000 iterations using array_filter() in 0.5014111995697 seconds<br/> 500500 iterations using foreach(){} in 0.19558215141296 seconds<br/> 2000 iterations using associative array{} in 0.13062715530396 seconds<br/>
Output for 5.6.13
1000000 iterations using array_filter() in 0.40376806259155 seconds<br/> 500500 iterations using foreach(){} in 0.15256595611572 seconds<br/> 2000 iterations using associative array{} in 0.10074090957642 seconds<br/>
Output for 5.6.12
1000000 iterations using array_filter() in 0.44414114952087 seconds<br/> 500500 iterations using foreach(){} in 0.17894911766052 seconds<br/> 2000 iterations using associative array{} in 0.099270820617676 seconds<br/>
Output for 5.6.11
1000000 iterations using array_filter() in 0.36220097541809 seconds<br/> 500500 iterations using foreach(){} in 0.15059995651245 seconds<br/> 2000 iterations using associative array{} in 0.097448825836182 seconds<br/>
Output for 5.6.10
1000000 iterations using array_filter() in 0.36407899856567 seconds<br/> 500500 iterations using foreach(){} in 0.14703297615051 seconds<br/> 2000 iterations using associative array{} in 0.095467090606689 seconds<br/>
Output for 5.6.9
1000000 iterations using array_filter() in 0.45371699333191 seconds<br/> 500500 iterations using foreach(){} in 0.17237997055054 seconds<br/> 2000 iterations using associative array{} in 0.11155104637146 seconds<br/>
Output for 5.6.8
1000000 iterations using array_filter() in 0.44578719139099 seconds<br/> 500500 iterations using foreach(){} in 0.18783092498779 seconds<br/> 2000 iterations using associative array{} in 0.10528588294983 seconds<br/>
Output for 5.6.7
1000000 iterations using array_filter() in 0.45383095741272 seconds<br/> 500500 iterations using foreach(){} in 0.18963217735291 seconds<br/> 2000 iterations using associative array{} in 0.11622381210327 seconds<br/>
Output for 5.6.6
1000000 iterations using array_filter() in 0.48578310012817 seconds<br/> 500500 iterations using foreach(){} in 0.19166088104248 seconds<br/> 2000 iterations using associative array{} in 0.12759709358215 seconds<br/>
Output for 5.6.5
1000000 iterations using array_filter() in 0.46413397789001 seconds<br/> 500500 iterations using foreach(){} in 0.18837380409241 seconds<br/> 2000 iterations using associative array{} in 0.12579298019409 seconds<br/>
Output for 5.6.4
1000000 iterations using array_filter() in 0.4277491569519 seconds<br/> 500500 iterations using foreach(){} in 0.14688611030579 seconds<br/> 2000 iterations using associative array{} in 0.098310947418213 seconds<br/>
Output for 5.6.3
1000000 iterations using array_filter() in 0.43484091758728 seconds<br/> 500500 iterations using foreach(){} in 0.17320418357849 seconds<br/> 2000 iterations using associative array{} in 0.09634804725647 seconds<br/>
Output for 5.6.2
1000000 iterations using array_filter() in 0.45463609695435 seconds<br/> 500500 iterations using foreach(){} in 0.18860411643982 seconds<br/> 2000 iterations using associative array{} in 0.12436485290527 seconds<br/>
Output for 5.6.1
1000000 iterations using array_filter() in 0.45958709716797 seconds<br/> 500500 iterations using foreach(){} in 0.18880796432495 seconds<br/> 2000 iterations using associative array{} in 0.12467122077942 seconds<br/>
Output for 5.6.0
1000000 iterations using array_filter() in 0.39839005470276 seconds<br/> 500500 iterations using foreach(){} in 0.15060997009277 seconds<br/> 2000 iterations using associative array{} in 0.097283124923706 seconds<br/>
Output for 5.5.36
1000000 iterations using array_filter() in 0.46070003509521 seconds<br/> 500500 iterations using foreach(){} in 0.19353604316711 seconds<br/> 2000 iterations using associative array{} in 0.12939310073853 seconds<br/>
Output for 5.5.35
1000000 iterations using array_filter() in 0.50289106369019 seconds<br/> 500500 iterations using foreach(){} in 0.20205497741699 seconds<br/> 2000 iterations using associative array{} in 0.13003301620483 seconds<br/>
Output for 5.5.34
1000000 iterations using array_filter() in 0.50183606147766 seconds<br/> 500500 iterations using foreach(){} in 0.19898796081543 seconds<br/> 2000 iterations using associative array{} in 0.13304710388184 seconds<br/>
Output for 5.5.33
1000000 iterations using array_filter() in 0.48609304428101 seconds<br/> 500500 iterations using foreach(){} in 0.19496989250183 seconds<br/> 2000 iterations using associative array{} in 0.12389612197876 seconds<br/>
Output for 5.5.32
1000000 iterations using array_filter() in 0.50523591041565 seconds<br/> 500500 iterations using foreach(){} in 0.2040638923645 seconds<br/> 2000 iterations using associative array{} in 0.13556814193726 seconds<br/>
Output for 5.5.31
1000000 iterations using array_filter() in 0.41385698318481 seconds<br/> 500500 iterations using foreach(){} in 0.15764904022217 seconds<br/> 2000 iterations using associative array{} in 0.10406684875488 seconds<br/>
Output for 5.5.30
1000000 iterations using array_filter() in 0.4084780216217 seconds<br/> 500500 iterations using foreach(){} in 0.15423512458801 seconds<br/> 2000 iterations using associative array{} in 0.10083889961243 seconds<br/>
Output for 5.5.29
1000000 iterations using array_filter() in 0.43487596511841 seconds<br/> 500500 iterations using foreach(){} in 0.15831089019775 seconds<br/> 2000 iterations using associative array{} in 0.10242915153503 seconds<br/>
Output for 5.5.28
1000000 iterations using array_filter() in 0.48360300064087 seconds<br/> 500500 iterations using foreach(){} in 0.18410897254944 seconds<br/> 2000 iterations using associative array{} in 0.11887192726135 seconds<br/>
Output for 5.5.27
1000000 iterations using array_filter() in 0.6048469543457 seconds<br/> 500500 iterations using foreach(){} in 0.25859308242798 seconds<br/> 2000 iterations using associative array{} in 0.17058682441711 seconds<br/>
Output for 5.5.26
1000000 iterations using array_filter() in 0.47955989837646 seconds<br/> 500500 iterations using foreach(){} in 0.26075887680054 seconds<br/> 2000 iterations using associative array{} in 0.17181706428528 seconds<br/>
Output for 5.5.25
1000000 iterations using array_filter() in 0.43458390235901 seconds<br/> 500500 iterations using foreach(){} in 0.15841102600098 seconds<br/> 2000 iterations using associative array{} in 0.10077691078186 seconds<br/>
Output for 5.5.24
1000000 iterations using array_filter() in 0.40760612487793 seconds<br/> 500500 iterations using foreach(){} in 0.15461301803589 seconds<br/> 2000 iterations using associative array{} in 0.10091400146484 seconds<br/>
Output for 5.5.23
1000000 iterations using array_filter() in 0.46967601776123 seconds<br/> 500500 iterations using foreach(){} in 0.1962308883667 seconds<br/> 2000 iterations using associative array{} in 0.12947297096252 seconds<br/>
Output for 5.5.22
1000000 iterations using array_filter() in 0.46826815605164 seconds<br/> 500500 iterations using foreach(){} in 0.19772696495056 seconds<br/> 2000 iterations using associative array{} in 0.12901496887207 seconds<br/>
Output for 5.5.21
1000000 iterations using array_filter() in 0.48130798339844 seconds<br/> 500500 iterations using foreach(){} in 0.18147897720337 seconds<br/> 2000 iterations using associative array{} in 0.10406994819641 seconds<br/>
Output for 5.5.20
1000000 iterations using array_filter() in 0.4511890411377 seconds<br/> 500500 iterations using foreach(){} in 0.19587302207947 seconds<br/> 2000 iterations using associative array{} in 0.11910581588745 seconds<br/>
Output for 5.5.19
1000000 iterations using array_filter() in 0.47608304023743 seconds<br/> 500500 iterations using foreach(){} in 0.20002198219299 seconds<br/> 2000 iterations using associative array{} in 0.12758898735046 seconds<br/>
Output for 5.5.18
1000000 iterations using array_filter() in 0.4753270149231 seconds<br/> 500500 iterations using foreach(){} in 0.19634199142456 seconds<br/> 2000 iterations using associative array{} in 0.13376712799072 seconds<br/>
Output for 5.5.16
1000000 iterations using array_filter() in 0.46812391281128 seconds<br/> 500500 iterations using foreach(){} in 0.20302295684814 seconds<br/> 2000 iterations using associative array{} in 0.12537503242493 seconds<br/>
Output for 5.5.15
1000000 iterations using array_filter() in 0.47005391120911 seconds<br/> 500500 iterations using foreach(){} in 0.19856095314026 seconds<br/> 2000 iterations using associative array{} in 0.13655114173889 seconds<br/>
Output for 5.5.14
1000000 iterations using array_filter() in 0.45813488960266 seconds<br/> 500500 iterations using foreach(){} in 0.18637681007385 seconds<br/> 2000 iterations using associative array{} in 0.12072396278381 seconds<br/>
Output for 5.5.13
1000000 iterations using array_filter() in 0.3995521068573 seconds<br/> 500500 iterations using foreach(){} in 0.1553258895874 seconds<br/> 2000 iterations using associative array{} in 0.10145092010498 seconds<br/>
Output for 5.5.12
1000000 iterations using array_filter() in 0.40409207344055 seconds<br/> 500500 iterations using foreach(){} in 0.153813123703 seconds<br/> 2000 iterations using associative array{} in 0.10458779335022 seconds<br/>
Output for 5.5.11
1000000 iterations using array_filter() in 0.49135208129883 seconds<br/> 500500 iterations using foreach(){} in 0.18417501449585 seconds<br/> 2000 iterations using associative array{} in 0.12817788124084 seconds<br/>
Output for 5.5.10
1000000 iterations using array_filter() in 0.4612181186676 seconds<br/> 500500 iterations using foreach(){} in 0.19413208961487 seconds<br/> 2000 iterations using associative array{} in 0.12934589385986 seconds<br/>
Output for 5.5.9
1000000 iterations using array_filter() in 0.46542406082153 seconds<br/> 500500 iterations using foreach(){} in 0.19839215278625 seconds<br/> 2000 iterations using associative array{} in 0.12935495376587 seconds<br/>
Output for 5.5.8
1000000 iterations using array_filter() in 0.4364709854126 seconds<br/> 500500 iterations using foreach(){} in 0.16919302940369 seconds<br/> 2000 iterations using associative array{} in 0.11424112319946 seconds<br/>
Output for 5.5.7
1000000 iterations using array_filter() in 0.44897103309631 seconds<br/> 500500 iterations using foreach(){} in 0.18116807937622 seconds<br/> 2000 iterations using associative array{} in 0.10783314704895 seconds<br/>
Output for 5.5.6
1000000 iterations using array_filter() in 0.47119903564453 seconds<br/> 500500 iterations using foreach(){} in 0.18515801429749 seconds<br/> 2000 iterations using associative array{} in 0.12055397033691 seconds<br/>
Output for 5.5.5
1000000 iterations using array_filter() in 0.48642897605896 seconds<br/> 500500 iterations using foreach(){} in 0.20375394821167 seconds<br/> 2000 iterations using associative array{} in 0.13361406326294 seconds<br/>
Output for 5.5.4
1000000 iterations using array_filter() in 0.47083711624146 seconds<br/> 500500 iterations using foreach(){} in 0.19996404647827 seconds<br/> 2000 iterations using associative array{} in 0.12441301345825 seconds<br/>
Output for 5.5.3
1000000 iterations using array_filter() in 0.48201012611389 seconds<br/> 500500 iterations using foreach(){} in 0.20241904258728 seconds<br/> 2000 iterations using associative array{} in 0.12630605697632 seconds<br/>
Output for 5.5.2
1000000 iterations using array_filter() in 0.46475696563721 seconds<br/> 500500 iterations using foreach(){} in 0.1879460811615 seconds<br/> 2000 iterations using associative array{} in 0.12332010269165 seconds<br/>
Output for 5.5.1
1000000 iterations using array_filter() in 0.46645498275757 seconds<br/> 500500 iterations using foreach(){} in 0.19839286804199 seconds<br/> 2000 iterations using associative array{} in 0.12989401817322 seconds<br/>
Output for 5.5.0
1000000 iterations using array_filter() in 0.37410378456116 seconds<br/> 500500 iterations using foreach(){} in 0.16061902046204 seconds<br/> 2000 iterations using associative array{} in 0.10509705543518 seconds<br/>
Output for 5.4.45
1000000 iterations using array_filter() in 0.4545841217041 seconds<br/> 500500 iterations using foreach(){} in 0.17671799659729 seconds<br/> 2000 iterations using associative array{} in 0.11727499961853 seconds<br/>
Output for 5.4.44
1000000 iterations using array_filter() in 0.46872401237488 seconds<br/> 500500 iterations using foreach(){} in 0.18732810020447 seconds<br/> 2000 iterations using associative array{} in 0.12391185760498 seconds<br/>
Output for 5.4.43
1000000 iterations using array_filter() in 0.35938596725464 seconds<br/> 500500 iterations using foreach(){} in 0.18872404098511 seconds<br/> 2000 iterations using associative array{} in 0.098925828933716 seconds<br/>
Output for 5.4.42
1000000 iterations using array_filter() in 0.35676598548889 seconds<br/> 500500 iterations using foreach(){} in 0.15131187438965 seconds<br/> 2000 iterations using associative array{} in 0.098480939865112 seconds<br/>
Output for 5.4.41
1000000 iterations using array_filter() in 0.37566804885864 seconds<br/> 500500 iterations using foreach(){} in 0.15244293212891 seconds<br/> 2000 iterations using associative array{} in 0.10012412071228 seconds<br/>
Output for 5.4.40
1000000 iterations using array_filter() in 0.45827198028564 seconds<br/> 500500 iterations using foreach(){} in 0.18928813934326 seconds<br/> 2000 iterations using associative array{} in 0.12561297416687 seconds<br/>
Output for 5.4.39
1000000 iterations using array_filter() in 0.44183111190796 seconds<br/> 500500 iterations using foreach(){} in 0.18807601928711 seconds<br/> 2000 iterations using associative array{} in 0.12770104408264 seconds<br/>
Output for 5.4.38
1000000 iterations using array_filter() in 0.46363615989685 seconds<br/> 500500 iterations using foreach(){} in 0.19585204124451 seconds<br/> 2000 iterations using associative array{} in 0.12795519828796 seconds<br/>
Output for 5.4.37
1000000 iterations using array_filter() in 0.45775318145752 seconds<br/> 500500 iterations using foreach(){} in 0.19123482704163 seconds<br/> 2000 iterations using associative array{} in 0.12753319740295 seconds<br/>
Output for 5.4.36
1000000 iterations using array_filter() in 0.45050501823425 seconds<br/> 500500 iterations using foreach(){} in 0.17666792869568 seconds<br/> 2000 iterations using associative array{} in 0.11559391021729 seconds<br/>
Output for 5.4.35
1000000 iterations using array_filter() in 0.46587586402893 seconds<br/> 500500 iterations using foreach(){} in 0.19142508506775 seconds<br/> 2000 iterations using associative array{} in 0.12731599807739 seconds<br/>
Output for 5.4.34
1000000 iterations using array_filter() in 0.46364498138428 seconds<br/> 500500 iterations using foreach(){} in 0.19246196746826 seconds<br/> 2000 iterations using associative array{} in 0.12576389312744 seconds<br/>
Output for 5.4.32
1000000 iterations using array_filter() in 0.46780705451965 seconds<br/> 500500 iterations using foreach(){} in 0.19526481628418 seconds<br/> 2000 iterations using associative array{} in 0.12968587875366 seconds<br/>
Output for 5.4.31
1000000 iterations using array_filter() in 0.40657997131348 seconds<br/> 500500 iterations using foreach(){} in 0.15313506126404 seconds<br/> 2000 iterations using associative array{} in 0.10041999816895 seconds<br/>
Output for 5.4.30
1000000 iterations using array_filter() in 0.46869492530823 seconds<br/> 500500 iterations using foreach(){} in 0.1794490814209 seconds<br/> 2000 iterations using associative array{} in 0.11483907699585 seconds<br/>
Output for 5.4.29
1000000 iterations using array_filter() in 0.39578008651733 seconds<br/> 500500 iterations using foreach(){} in 0.15105295181274 seconds<br/> 2000 iterations using associative array{} in 0.098701953887939 seconds<br/>
Output for 5.4.28
1000000 iterations using array_filter() in 0.46791100502014 seconds<br/> 500500 iterations using foreach(){} in 0.19216012954712 seconds<br/> 2000 iterations using associative array{} in 0.1254870891571 seconds<br/>
Output for 5.4.27
1000000 iterations using array_filter() in 0.44528484344482 seconds<br/> 500500 iterations using foreach(){} in 0.18452095985413 seconds<br/> 2000 iterations using associative array{} in 0.099285840988159 seconds<br/>
Output for 5.4.26
1000000 iterations using array_filter() in 0.4402379989624 seconds<br/> 500500 iterations using foreach(){} in 0.17851305007935 seconds<br/> 2000 iterations using associative array{} in 0.12408709526062 seconds<br/>
Output for 5.4.25
1000000 iterations using array_filter() in 0.47079110145569 seconds<br/> 500500 iterations using foreach(){} in 0.19769906997681 seconds<br/> 2000 iterations using associative array{} in 0.13007092475891 seconds<br/>
Output for 5.4.24
1000000 iterations using array_filter() in 0.48482394218445 seconds<br/> 500500 iterations using foreach(){} in 0.19204998016357 seconds<br/> 2000 iterations using associative array{} in 0.13047194480896 seconds<br/>
Output for 5.4.23
1000000 iterations using array_filter() in 0.47062802314758 seconds<br/> 500500 iterations using foreach(){} in 0.19868993759155 seconds<br/> 2000 iterations using associative array{} in 0.1196129322052 seconds<br/>
Output for 5.4.22
1000000 iterations using array_filter() in 0.46075701713562 seconds<br/> 500500 iterations using foreach(){} in 0.18204402923584 seconds<br/> 2000 iterations using associative array{} in 0.11855506896973 seconds<br/>
Output for 5.4.21
1000000 iterations using array_filter() in 0.48146796226501 seconds<br/> 500500 iterations using foreach(){} in 0.19389200210571 seconds<br/> 2000 iterations using associative array{} in 0.12073278427124 seconds<br/>
Output for 5.4.20
1000000 iterations using array_filter() in 0.46100282669067 seconds<br/> 500500 iterations using foreach(){} in 0.17464303970337 seconds<br/> 2000 iterations using associative array{} in 0.11485505104065 seconds<br/>
Output for 5.4.19
1000000 iterations using array_filter() in 0.46459102630615 seconds<br/> 500500 iterations using foreach(){} in 0.18743801116943 seconds<br/> 2000 iterations using associative array{} in 0.12444305419922 seconds<br/>
Output for 5.4.18
1000000 iterations using array_filter() in 0.4629271030426 seconds<br/> 500500 iterations using foreach(){} in 0.19124102592468 seconds<br/> 2000 iterations using associative array{} in 0.13553810119629 seconds<br/>
Output for 5.4.17
1000000 iterations using array_filter() in 0.45103216171265 seconds<br/> 500500 iterations using foreach(){} in 0.19047594070435 seconds<br/> 2000 iterations using associative array{} in 0.1187469959259 seconds<br/>
Output for 5.4.16
1000000 iterations using array_filter() in 0.35011792182922 seconds<br/> 500500 iterations using foreach(){} in 0.15107607841492 seconds<br/> 2000 iterations using associative array{} in 0.099843978881836 seconds<br/>
Output for 5.4.15
1000000 iterations using array_filter() in 0.48579621315002 seconds<br/> 500500 iterations using foreach(){} in 0.21204519271851 seconds<br/> 2000 iterations using associative array{} in 0.13645696640015 seconds<br/>
Output for 5.4.14
1000000 iterations using array_filter() in 0.47702789306641 seconds<br/> 500500 iterations using foreach(){} in 0.17471599578857 seconds<br/> 2000 iterations using associative array{} in 0.097939014434814 seconds<br/>
Output for 5.4.13
1000000 iterations using array_filter() in 0.44579887390137 seconds<br/> 500500 iterations using foreach(){} in 0.15387105941772 seconds<br/> 2000 iterations using associative array{} in 0.10022211074829 seconds<br/>
Output for 5.4.12
1000000 iterations using array_filter() in 0.36956405639648 seconds<br/> 500500 iterations using foreach(){} in 0.1555380821228 seconds<br/> 2000 iterations using associative array{} in 0.10487985610962 seconds<br/>
Output for 5.4.11
1000000 iterations using array_filter() in 0.35533094406128 seconds<br/> 500500 iterations using foreach(){} in 0.16989398002625 seconds<br/> 2000 iterations using associative array{} in 0.16592407226562 seconds<br/>
Output for 5.4.10
1000000 iterations using array_filter() in 0.35304498672485 seconds<br/> 500500 iterations using foreach(){} in 0.14969396591187 seconds<br/> 2000 iterations using associative array{} in 0.099004983901978 seconds<br/>
Output for 5.4.9
1000000 iterations using array_filter() in 0.40423202514648 seconds<br/> 500500 iterations using foreach(){} in 0.15082693099976 seconds<br/> 2000 iterations using associative array{} in 0.097841024398804 seconds<br/>
Output for 5.4.8
1000000 iterations using array_filter() in 0.36887097358704 seconds<br/> 500500 iterations using foreach(){} in 0.15550088882446 seconds<br/> 2000 iterations using associative array{} in 0.10314393043518 seconds<br/>
Output for 5.4.7
1000000 iterations using array_filter() in 0.45196199417114 seconds<br/> 500500 iterations using foreach(){} in 0.18909478187561 seconds<br/> 2000 iterations using associative array{} in 0.10224390029907 seconds<br/>
Output for 5.4.6
1000000 iterations using array_filter() in 0.47300386428833 seconds<br/> 500500 iterations using foreach(){} in 0.19003105163574 seconds<br/> 2000 iterations using associative array{} in 0.12592101097107 seconds<br/>
Output for 5.4.5
1000000 iterations using array_filter() in 0.46507287025452 seconds<br/> 500500 iterations using foreach(){} in 0.18995189666748 seconds<br/> 2000 iterations using associative array{} in 0.12602496147156 seconds<br/>
Output for 5.4.4
1000000 iterations using array_filter() in 0.49600315093994 seconds<br/> 500500 iterations using foreach(){} in 0.19045996665955 seconds<br/> 2000 iterations using associative array{} in 0.12709593772888 seconds<br/>
Output for 5.4.3
1000000 iterations using array_filter() in 0.4856870174408 seconds<br/> 500500 iterations using foreach(){} in 0.19507694244385 seconds<br/> 2000 iterations using associative array{} in 0.12922501564026 seconds<br/>
Output for 5.4.2
1000000 iterations using array_filter() in 0.47114896774292 seconds<br/> 500500 iterations using foreach(){} in 0.20867109298706 seconds<br/> 2000 iterations using associative array{} in 0.13006401062012 seconds<br/>
Output for 5.4.1
1000000 iterations using array_filter() in 0.38511514663696 seconds<br/> 500500 iterations using foreach(){} in 0.14799499511719 seconds<br/> 2000 iterations using associative array{} in 0.09703803062439 seconds<br/>
Output for 5.4.0
1000000 iterations using array_filter() in 0.48536705970764 seconds<br/> 500500 iterations using foreach(){} in 0.20142388343811 seconds<br/> 2000 iterations using associative array{} in 0.13330698013306 seconds<br/>
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/iVsCO on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/iVsCO on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/iVsCO on line 3
Process exited with code 255.