InArraySmallStrictTest

Check if value is in array (strict) 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$uniquestrue);
}

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 0.027271 +283%
8.3.10 100.000 0.017593 +183%
8.3.9 100.000 0.017051 +177%
7.3.33 100.000 0.013343 +139%
7.3.31 100.000 0.011673 +121%
7.3.30 100.000 0.011821 +123%
7.3.29 100.000 0.011779 +122%
7.3.28 100.000 0.012310 +128%
7.3.27 100.000 0.014637 +152%
7.3.24 100.000 0.012830 +133%
7.3.23 100.000 0.013886 +144%
7.3.22 100.000 0.011959 +124%
7.3.19 100.000 0.012588 +131%
7.3.18 100.000 0.010871 +113%
7.3.17 100.000 0.011016 +114%
7.3.16 100.000 0.010676 +111%
7.3.15 100.000 0.010238 +106%
7.3.14 100.000 0.012234 +127%
7.3.13 100.000 0.010175 +106%
7.3.12 100.000 0.009625 100%
7.3.11 100.000 0.011852 +123%
7.3.9 100.000 0.013790 +143%
7.3.8 100.000 0.012420 +129%
7.2.29 100.000 0.013360 +139%
8.3.13 10.000 0.004267 +307%
7.2.34 100.000 0.014227 +148%
7.2.33 100.000 0.014803 +154%
7.2.31 100.000 0.014252 +148%
7.2.30 100.000 0.012655 +131%
8.3.10 10.000 0.003097 +223%
7.2.28 100.000 0.010952 +114%
7.2.27 100.000 0.011806 +123%
7.2.26 100.000 0.012152 +126%
7.2.25 100.000 0.010489 +109%
7.2.24 100.000 0.012986 +135%
7.2.22 100.000 0.015613 +162%
7.2.21 100.000 0.014166 +147%
7.1.33 100.000 0.013936 +145%
7.1.32 100.000 0.017612 +183%
7.1.31 100.000 0.015953 +166%
7.1.0 100.000 0.081186 +843%
7.0.33 100.000 0.014234 +148%
7.0.7 100.000 0.078873 +819%
5.6.40 100.000 0.030069 +312%
5.6.22 100.000 0.166221 +1727%
5.5.36 100.000 0.183231 +1904%
5.4.45 100.000 0.182855 +1900%
5.3.29 100.000 0.273801 +2845%
8.3.9 10.000 0.002862 +206%
8.0.30 100.000 0.013994 +145%
8.0.29 100.000 0.011555 +120%
8.0.28 100.000 0.010698 +111%
8.0.27 100.000 0.011831 +123%
8.0.26 100.000 0.012022 +125%
8.0.25 100.000 0.011289 +117%
8.0.24 100.000 0.010475 +109%
8.0.23 100.000 0.012138 +126%
8.0.20 10.000 0.001962 +141%
8.0.20 100.000 0.011742 +122%
8.0.19 10.000 0.002625 +189%
8.0.19 100.000 0.010518 +109%
8.0.17 10.000 0.002614 +188%
8.0.17 100.000 0.011870 +123%
8.0.16 10.000 0.002712 +195%
8.0.16 100.000 0.015477 +161%
8.0.14 10.000 0.002535 +182%
8.0.14 100.000 0.012351 +128%
8.0.11 100.000 0.011911 +124%
8.0.10 100.000 0.012308 +128%
8.0.9 100.000 0.014455 +150%
8.0.8 100.000 0.013866 +144%
8.0.7 100.000 0.011457 +119%
8.0.3 100.000 0.013813 +144%
8.0.2 100.000 0.016912 +176%
8.0.0 100.000 0.011833 +123%
7.4.33 100.000 0.014042 +146%
7.4.32 100.000 0.011564 +120%
7.4.30 100.000 0.011985 +125%
7.4.28 100.000 0.011948 +124%
7.4.27 100.000 0.012790 +133%
7.4.24 100.000 0.011755 +122%
7.4.23 100.000 0.011375 +118%
7.4.22 100.000 0.011932 +124%
8.0.11 10.000 0.002490 +179%
8.0.10 10.000 0.002654 +191%
8.0.0 10.000 0.002409 +173%
7.4.29 100.000 0.011662 +121%
7.4.21 10.000 0.002650 +191%
7.4.21 100.000 0.011992 +125%
7.4.20 10.000 0.002565 +184%
7.4.20 100.000 0.012223 +127%
7.4.16 100.000 0.014184 +147%
7.4.15 100.000 0.018924 +197%
7.4.33 10.000 0.002505 +180%
7.4.32 10.000 0.002335 +168%
7.4.30 10.000 0.002043 +147%
7.4.29 10.000 0.002832 +204%
7.4.24 10.000 0.002474 +178%
7.4.23 10.000 0.002450 +176%
7.4.22 10.000 0.002223 +160%
7.4.13 100.000 0.012772 +133%
7.4.12 100.000 0.014438 +150%
7.4.11 100.000 0.014095 +146%
7.4.10 100.000 0.013506 +140%
8.0.2 10.000 0.003474 +250%
7.4.0 100.000 0.012290 +128%
8.0.30 10.000 0.002571 +185%
8.0.29 10.000 0.001735 +125%
8.0.28 10.000 0.002055 +148%
8.0.27 10.000 0.002682 +193%
8.0.26 10.000 0.002300 +165%
8.0.25 10.000 0.002394 +172%
8.0.24 10.000 0.002217 +159%
8.0.23 10.000 0.002256 +162%
8.0.9 10.000 0.002323 +167%
8.0.8 10.000 0.002634 +189%
8.0.7 10.000 0.002742 +197%
8.0.3 10.000 0.002928 +211%
7.4.28 10.000 0.002547 +183%
7.4.27 10.000 0.002764 +199%
7.4.16 10.000 0.002923 +210%
7.4.15 10.000 0.003479 +250%
7.4.13 10.000 0.002452 +176%
7.4.12 10.000 0.002501 +180%
7.4.11 10.000 0.002607 +187%
7.4.10 10.000 0.002932 +211%
7.4.7 10.000 0.002677 +193%
7.4.7 100.000 0.013891 +144%
7.4.6 10.000 0.002289 +165%
7.4.6 100.000 0.010771 +112%
7.4.5 10.000 0.002510 +180%
7.4.5 100.000 0.011691 +121%
7.4.4 10.000 0.002309 +166%
7.4.4 100.000 0.011142 +116%
7.4.3 10.000 0.001950 +140%
7.4.3 100.000 0.010670 +111%
7.4.1 100.000 0.010012 +104%
7.4.2 10.000 0.003028 +218%
7.4.2 100.000 0.012276 +128%
7.4.1 10.000 0.002773 +199%
7.4.0 10.000 0.001692 +122%
7.3.33 10.000 0.002408 +173%
7.3.31 10.000 0.002361 +170%
7.3.30 10.000 0.002628 +189%
7.3.29 10.000 0.002377 +171%
7.3.28 10.000 0.002483 +179%
7.3.27 10.000 0.002951 +212%
7.3.24 10.000 0.002339 +168%
7.3.23 10.000 0.002421 +174%
7.3.22 10.000 0.002487 +179%
7.3.19 10.000 0.002610 +188%
7.3.18 10.000 0.002384 +171%
7.3.17 10.000 0.002487 +179%
7.3.16 10.000 0.002108 +152%
7.3.15 10.000 0.002227 +160%
7.3.14 10.000 0.002719 +196%
7.3.13 10.000 0.002656 +191%
7.3.12 10.000 0.002513 +181%
7.3.11 10.000 0.001799 +129%
7.3.9 10.000 0.001565 +113%
7.3.8 10.000 0.001391 100%
7.2.34 10.000 0.002754 +198%
7.2.33 10.000 0.003013 +217%
7.2.31 10.000 0.002893 +208%
7.2.30 10.000 0.003031 +218%
7.2.29 10.000 0.003012 +217%
7.2.28 10.000 0.002641 +190%
7.2.27 10.000 0.003191 +229%
7.2.26 10.000 0.002996 +215%
7.2.25 10.000 0.002470 +178%
7.2.24 10.000 0.001814 +130%
7.2.22 10.000 0.001699 +122%
7.2.21 10.000 0.001514 +109%
7.1.33 10.000 0.002717 +195%
7.1.32 10.000 0.001759 +127%
7.1.31 10.000 0.001601 +115%
7.1.0 10.000 0.008880 +639%
7.0.33 10.000 0.002603 +187%
7.0.7 10.000 0.008408 +605%
5.6.40 10.000 0.003759 +270%
5.6.22 10.000 0.017491 +1258%
5.5.36 10.000 0.019092 +1373%
5.4.45 10.000 0.018635 +1340%
5.3.29 10.000 0.027572 +1983%