InArraySmallTest

Check if value is in array with few elements


<?php 

$values 
$this->getRangeStrings($loop);
$uniques array_slice($valuesrand(0count($values) - 10), 5);

$this->start($loop);

foreach (
$values as $value) {
    
$value in_array($value$uniques);
}

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 0.022163 +298%
8.3.10 100.000 0.013706 +184%
8.3.9 100.000 0.013628 +183%
7.3.33 100.000 0.010184 +137%
7.3.31 100.000 0.008765 +118%
7.3.30 100.000 0.010115 +136%
7.3.29 100.000 0.008954 +121%
7.3.28 100.000 0.009797 +132%
7.3.27 100.000 0.011680 +157%
7.3.24 100.000 0.010113 +136%
7.3.23 100.000 0.011612 +156%
7.3.22 100.000 0.010760 +145%
7.3.19 100.000 0.010441 +141%
7.3.18 100.000 0.009255 +125%
7.3.17 100.000 0.010470 +141%
7.3.16 100.000 0.007430 100%
7.3.15 100.000 0.007655 +103%
7.3.14 100.000 0.009588 +129%
7.3.13 100.000 0.008354 +112%
7.3.12 100.000 0.007455 100%
7.3.11 100.000 0.009524 +128%
7.3.9 100.000 0.009907 +133%
7.3.8 100.000 0.010072 +136%
7.2.29 100.000 0.009039 +122%
8.3.13 10.000 0.002684 +286%
7.2.34 100.000 0.011407 +154%
7.2.33 100.000 0.012389 +167%
7.2.31 100.000 0.011092 +149%
7.2.30 100.000 0.009301 +125%
8.3.10 10.000 0.002081 +222%
7.2.28 100.000 0.009606 +129%
7.2.27 100.000 0.010263 +138%
7.2.26 100.000 0.009463 +127%
7.2.25 100.000 0.009183 +124%
7.2.24 100.000 0.010317 +139%
7.2.22 100.000 0.011410 +154%
7.2.21 100.000 0.010636 +143%
7.1.33 100.000 0.010936 +147%
7.1.32 100.000 0.013346 +180%
7.1.31 100.000 0.011874 +160%
7.1.0 100.000 0.062898 +847%
7.0.33 100.000 0.011371 +153%
7.0.7 100.000 0.061668 +830%
5.6.40 100.000 0.036241 +488%
5.6.22 100.000 0.159568 +2148%
5.5.36 100.000 0.168146 +2263%
5.4.45 100.000 0.164388 +2212%
5.3.29 100.000 0.163783 +2204%
8.3.9 10.000 0.001811 +193%
8.0.30 100.000 0.011214 +151%
8.0.29 100.000 0.008926 +120%
8.0.28 100.000 0.008712 +117%
8.0.27 100.000 0.009089 +122%
8.0.26 100.000 0.010069 +136%
8.0.25 100.000 0.009087 +122%
8.0.24 100.000 0.009404 +127%
8.0.23 100.000 0.009310 +125%
8.0.20 10.000 0.001252 +133%
8.0.20 100.000 0.009216 +124%
8.0.19 10.000 0.001929 +206%
8.0.19 100.000 0.008651 +116%
8.0.17 10.000 0.002058 +219%
8.0.17 100.000 0.008971 +121%
8.0.16 10.000 0.002649 +282%
8.0.16 100.000 0.011361 +153%
8.0.14 10.000 0.002006 +214%
8.0.14 100.000 0.009434 +127%
8.0.11 100.000 0.009118 +123%
8.0.10 100.000 0.009240 +124%
8.0.9 100.000 0.011308 +152%
8.0.8 100.000 0.012535 +169%
8.0.7 100.000 0.009232 +124%
8.0.3 100.000 0.010792 +145%
8.0.2 100.000 0.014270 +192%
8.0.0 100.000 0.009632 +130%
7.4.33 100.000 0.010406 +140%
7.4.32 100.000 0.009001 +121%
7.4.30 100.000 0.010144 +137%
7.4.28 100.000 0.010022 +135%
7.4.27 100.000 0.009305 +125%
7.4.24 100.000 0.009511 +128%
7.4.23 100.000 0.008530 +115%
7.4.22 100.000 0.009848 +133%
8.0.11 10.000 0.001901 +203%
8.0.10 10.000 0.001872 +200%
8.0.0 10.000 0.001962 +209%
7.4.29 100.000 0.009996 +135%
7.4.21 10.000 0.001564 +167%
7.4.21 100.000 0.009446 +127%
7.4.20 10.000 0.001808 +193%
7.4.20 100.000 0.009152 +123%
7.4.16 100.000 0.010903 +147%
7.4.15 100.000 0.012281 +165%
7.4.33 10.000 0.001477 +157%
7.4.32 10.000 0.001450 +155%
7.4.30 10.000 0.001362 +145%
7.4.29 10.000 0.002080 +222%
7.4.24 10.000 0.001837 +196%
7.4.23 10.000 0.001819 +194%
7.4.22 10.000 0.001778 +189%
7.4.13 100.000 0.009919 +133%
7.4.12 100.000 0.013055 +176%
7.4.11 100.000 0.011551 +155%
7.4.10 100.000 0.009853 +133%
8.0.2 10.000 0.002981 +318%
7.4.0 100.000 0.009546 +128%
8.0.30 10.000 0.001663 +177%
8.0.29 10.000 0.000938 100%
8.0.28 10.000 0.001151 +123%
8.0.27 10.000 0.001461 +156%
8.0.26 10.000 0.001703 +181%
8.0.25 10.000 0.001324 +141%
8.0.24 10.000 0.001359 +145%
8.0.23 10.000 0.001368 +146%
8.0.9 10.000 0.001632 +174%
8.0.8 10.000 0.001735 +185%
8.0.7 10.000 0.002002 +213%
8.0.3 10.000 0.002314 +247%
7.4.28 10.000 0.001757 +187%
7.4.27 10.000 0.001938 +207%
7.4.16 10.000 0.002269 +242%
7.4.15 10.000 0.002809 +299%
7.4.13 10.000 0.001938 +207%
7.4.12 10.000 0.001955 +208%
7.4.11 10.000 0.002240 +239%
7.4.10 10.000 0.001925 +205%
7.4.7 10.000 0.002116 +226%
7.4.7 100.000 0.010284 +138%
7.4.6 10.000 0.001781 +190%
7.4.6 100.000 0.008228 +111%
7.4.5 10.000 0.001954 +208%
7.4.5 100.000 0.009541 +128%
7.4.4 10.000 0.001649 +176%
7.4.4 100.000 0.008174 +110%
7.4.3 10.000 0.001739 +185%
7.4.3 100.000 0.008554 +115%
7.4.1 100.000 0.007632 +103%
7.4.2 10.000 0.002122 +226%
7.4.2 100.000 0.009831 +132%
7.4.1 10.000 0.002196 +234%
7.4.0 10.000 0.001256 +134%
7.3.33 10.000 0.001522 +162%
7.3.31 10.000 0.001831 +195%
7.3.30 10.000 0.001639 +175%
7.3.29 10.000 0.001867 +199%
7.3.28 10.000 0.001874 +200%
7.3.27 10.000 0.002388 +255%
7.3.24 10.000 0.001893 +202%
7.3.23 10.000 0.001844 +197%
7.3.22 10.000 0.002047 +218%
7.3.19 10.000 0.002051 +219%
7.3.18 10.000 0.001750 +187%
7.3.17 10.000 0.002118 +226%
7.3.16 10.000 0.001447 +154%
7.3.15 10.000 0.001553 +166%
7.3.14 10.000 0.002134 +227%
7.3.13 10.000 0.001856 +198%
7.3.12 10.000 0.001688 +180%
7.3.11 10.000 0.001224 +130%
7.3.9 10.000 0.001139 +121%
7.3.8 10.000 0.001079 +115%
7.2.34 10.000 0.001889 +201%
7.2.33 10.000 0.002300 +245%
7.2.31 10.000 0.002175 +232%
7.2.30 10.000 0.002212 +236%
7.2.29 10.000 0.001614 +172%
7.2.28 10.000 0.001886 +201%
7.2.27 10.000 0.002383 +254%
7.2.26 10.000 0.001927 +205%
7.2.25 10.000 0.002055 +219%
7.2.24 10.000 0.001276 +136%
7.2.22 10.000 0.001354 +144%
7.2.21 10.000 0.001145 +122%
7.1.33 10.000 0.001933 +206%
7.1.32 10.000 0.001483 +158%
7.1.31 10.000 0.001184 +126%
7.1.0 10.000 0.006835 +729%
7.0.33 10.000 0.001896 +202%
7.0.7 10.000 0.006683 +712%
5.6.40 10.000 0.004323 +461%
5.6.22 10.000 0.017785 +1895%
5.5.36 10.000 0.018697 +1993%
5.4.45 10.000 0.017955 +1914%
5.3.29 10.000 0.017051 +1817%