InArrayTest

Check if value is in array


<?php 

$values 
$this->getRangeStrings($loop);
$uniques array_slice($values0count($values) / 2);

$this->start($loop);

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

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 34.189533 +176%
8.3.10 100.000 29.665016 +153%
8.3.9 100.000 28.127331 +145%
7.3.33 100.000 23.354105 +120%
7.3.31 100.000 20.628238 +106%
7.3.30 100.000 20.516025 +106%
7.3.29 100.000 21.447551 +110%
7.3.28 100.000 22.214582 +114%
7.3.27 100.000 23.583363 +121%
7.3.24 100.000 23.709048 +122%
7.3.23 100.000 25.283351 +130%
7.3.22 100.000 23.381359 +120%
7.3.19 100.000 24.726413 +127%
7.3.18 100.000 21.979141 +113%
7.3.17 100.000 21.991631 +113%
7.3.16 100.000 22.184480 +114%
7.3.15 100.000 20.273933 +104%
7.3.14 100.000 21.771402 +112%
7.3.13 100.000 21.735091 +112%
7.3.12 100.000 19.426401 100%
7.3.11 100.000 25.638335 +132%
7.3.9 100.000 28.664318 +148%
7.3.8 100.000 29.192158 +150%
7.2.29 100.000 27.329136 +141%
8.3.13 10.000 0.321191 +206%
7.2.34 100.000 31.319998 +161%
7.2.33 100.000 30.919828 +159%
7.2.31 100.000 29.936788 +154%
7.2.30 100.000 28.811716 +148%
8.3.10 10.000 0.278867 +179%
7.2.28 100.000 26.398034 +136%
7.2.27 100.000 28.194161 +145%
7.2.26 100.000 26.707198 +137%
7.2.25 100.000 25.230347 +130%
7.2.24 100.000 30.920320 +159%
7.2.22 100.000 35.557427 +183%
7.2.21 100.000 35.251430 +181%
7.1.33 100.000 29.523447 +152%
7.1.32 100.000 35.649243 +184%
7.1.31 100.000 35.232506 +181%
7.1.0 100.000 164.346441 +846%
7.0.33 100.000 29.998225 +154%
7.0.7 100.000 157.289755 +810%
5.6.40 100.000 164.820913 +848%
5.6.22 100.000 826.502073 +4255%
5.5.36 100.000 784.241538 +4037%
5.4.45 100.000 677.058957 +3485%
5.3.29 100.000 649.156125 +3342%
8.3.9 10.000 0.263326 +169%
8.0.30 100.000 26.378339 +136%
8.0.29 100.000 23.628499 +122%
8.0.28 100.000 23.062064 +119%
8.0.27 100.000 25.199871 +130%
8.0.26 100.000 26.360864 +136%
8.0.25 100.000 24.769227 +128%
8.0.24 100.000 24.090408 +124%
8.0.23 100.000 25.230617 +130%
8.0.20 10.000 0.236892 +152%
8.0.20 100.000 25.288953 +130%
8.0.19 10.000 0.205711 +132%
8.0.19 100.000 22.929285 +118%
8.0.17 10.000 0.194895 +125%
8.0.17 100.000 22.797278 +117%
8.0.16 10.000 0.196353 +126%
8.0.16 100.000 23.790157 +122%
8.0.14 10.000 0.166147 +107%
8.0.14 100.000 23.387461 +120%
8.0.11 100.000 22.775202 +117%
8.0.10 100.000 20.810629 +107%
8.0.9 100.000 22.374845 +115%
8.0.8 100.000 22.805134 +117%
8.0.7 100.000 22.370555 +115%
8.0.3 100.000 23.661168 +122%
8.0.2 100.000 25.643677 +132%
8.0.0 100.000 21.826767 +112%
7.4.33 100.000 24.126051 +124%
7.4.32 100.000 23.813142 +123%
7.4.30 100.000 26.698432 +137%
7.4.28 100.000 22.954676 +118%
7.4.27 100.000 24.491011 +126%
7.4.24 100.000 20.836332 +107%
7.4.23 100.000 20.831495 +107%
7.4.22 100.000 22.621179 +116%
8.0.11 10.000 0.206151 +132%
8.0.10 10.000 0.171957 +110%
8.0.0 10.000 0.169209 +109%
7.4.29 100.000 27.039681 +139%
7.4.21 10.000 0.177894 +114%
7.4.21 100.000 21.314574 +110%
7.4.20 10.000 0.170499 +109%
7.4.20 100.000 21.241360 +109%
7.4.16 100.000 23.428705 +121%
7.4.15 100.000 26.083479 +134%
7.4.33 10.000 0.204269 +131%
7.4.32 10.000 0.223447 +143%
7.4.30 10.000 0.252866 +162%
7.4.29 10.000 0.261939 +168%
7.4.24 10.000 0.161585 +104%
7.4.23 10.000 0.162961 +105%
7.4.22 10.000 0.193798 +124%
7.4.13 100.000 22.551958 +116%
7.4.12 100.000 25.293444 +130%
7.4.11 100.000 25.178772 +130%
7.4.10 100.000 24.264215 +125%
8.0.2 10.000 0.275159 +177%
7.4.0 100.000 27.153950 +140%
8.0.30 10.000 0.244081 +157%
8.0.29 10.000 0.215435 +138%
8.0.28 10.000 0.197968 +127%
8.0.27 10.000 0.215884 +139%
8.0.26 10.000 0.224432 +144%
8.0.25 10.000 0.223557 +144%
8.0.24 10.000 0.237161 +152%
8.0.23 10.000 0.263962 +169%
8.0.9 10.000 0.188855 +121%
8.0.8 10.000 0.193003 +124%
8.0.7 10.000 0.194573 +125%
8.0.3 10.000 0.231611 +149%
7.4.28 10.000 0.191971 +123%
7.4.27 10.000 0.208319 +134%
7.4.16 10.000 0.226414 +145%
7.4.15 10.000 0.250905 +161%
7.4.13 10.000 0.183941 +118%
7.4.12 10.000 0.171155 +110%
7.4.11 10.000 0.205484 +132%
7.4.10 10.000 0.191715 +123%
7.4.7 10.000 0.172902 +111%
7.4.7 100.000 23.619680 +122%
7.4.6 10.000 0.196472 +126%
7.4.6 100.000 22.051722 +114%
7.4.5 10.000 0.201432 +129%
7.4.5 100.000 22.759307 +117%
7.4.4 10.000 0.191706 +123%
7.4.4 100.000 22.056114 +114%
7.4.3 10.000 0.198843 +128%
7.4.3 100.000 21.948501 +113%
7.4.1 100.000 20.784202 +107%
7.4.2 10.000 0.203463 +131%
7.4.2 100.000 23.147920 +119%
7.4.1 10.000 0.171527 +110%
7.4.0 10.000 0.230563 +148%
7.3.33 10.000 0.203470 +131%
7.3.31 10.000 0.175799 +113%
7.3.30 10.000 0.166575 +107%
7.3.29 10.000 0.170315 +109%
7.3.28 10.000 0.191340 +123%
7.3.27 10.000 0.218613 +140%
7.3.24 10.000 0.197642 +127%
7.3.23 10.000 0.201775 +130%
7.3.22 10.000 0.163170 +105%
7.3.19 10.000 0.208303 +134%
7.3.18 10.000 0.199889 +128%
7.3.17 10.000 0.179908 +116%
7.3.16 10.000 0.192409 +124%
7.3.15 10.000 0.156191 100%
7.3.14 10.000 0.175637 +113%
7.3.13 10.000 0.190479 +122%
7.3.12 10.000 0.155731 100%
7.3.11 10.000 0.213188 +137%
7.3.9 10.000 0.229516 +147%
7.3.8 10.000 0.243316 +156%
7.2.34 10.000 0.238159 +153%
7.2.33 10.000 0.230290 +148%
7.2.31 10.000 0.227195 +146%
7.2.30 10.000 0.222587 +143%
7.2.29 10.000 0.215047 +138%
7.2.28 10.000 0.205959 +132%
7.2.27 10.000 0.217346 +140%
7.2.26 10.000 0.205440 +132%
7.2.25 10.000 0.185977 +119%
7.2.24 10.000 0.236928 +152%
7.2.22 10.000 0.299533 +192%
7.2.21 10.000 0.303078 +195%
7.1.33 10.000 0.233297 +150%
7.1.32 10.000 0.330866 +212%
7.1.31 10.000 0.300011 +193%
7.1.0 10.000 1.190495 +764%
7.0.33 10.000 0.237316 +152%
7.0.7 10.000 1.133790 +728%
5.6.40 10.000 1.284515 +825%
5.6.22 10.000 5.384011 +3457%
5.5.36 10.000 5.170986 +3320%
5.4.45 10.000 4.341305 +2788%
5.3.29 10.000 3.995058 +2565%