ArrayAssociativeTest

Generate an associative array from variables


<?php 

$this
->start($loop);

$one uniqid();
$two uniqid();
$three uniqid();
$four uniqid();

for (
$i 0$i $this->loop; ++$i) {
    
$data = array(
        
'one' => $one,
        
'two' => $two,
        
'three' => $three,
        
'four' => $four
    
);
}

return 
$this->end();
PHP Loops Seconds Percent
8.0.30 100.000 0.015724 +144%
8.0.29 100.000 0.012467 +114%
8.0.28 100.000 0.013897 +127%
8.0.23 100.000 0.015341 +141%
8.0.27 10.000 0.001362 +157%
8.0.27 100.000 0.014109 +129%
8.0.26 100.000 0.016487 +151%
8.0.25 100.000 0.013676 +125%
8.0.25 10.000 0.001185 +136%
8.0.24 10.000 0.001130 +130%
8.0.24 100.000 0.013590 +125%
8.0.23 10.000 0.000946 +109%
8.0.20 100.000 0.010909 100%
8.0.26 10.000 0.001306 +150%
8.0.19 100.000 0.015556 +143%
8.0.9 100.000 0.013048 +120%
8.0.28 10.000 0.001400 +161%
7.3.19 100.000 0.016672 +153%
8.0.20 10.000 0.000935 +108%
8.0.8 100.000 0.017096 +157%
7.3.23 100.000 0.016306 +149%
7.3.22 100.000 0.016087 +147%
7.2.34 100.000 0.017634 +162%
8.0.19 10.000 0.000869 100%
7.2.33 100.000 0.016937 +155%
7.2.31 100.000 0.018353 +168%
7.1.33 100.000 0.018452 +169%
7.0.33 100.000 0.017397 +159%
5.6.40 100.000 0.058558 +537%
8.0.30 10.000 0.001536 +177%
8.0.29 10.000 0.001263 +145%
8.0.17 10.000 0.001051 +121%
8.0.17 100.000 0.016507 +151%
7.3.27 100.000 0.020333 +186%
8.0.16 10.000 0.001032 +119%
8.0.16 100.000 0.015153 +139%
8.0.14 100.000 0.016025 +147%
8.0.11 100.000 0.016213 +149%
8.0.10 100.000 0.015375 +141%
8.0.14 10.000 0.000962 +111%
8.0.11 10.000 0.001221 +141%
8.0.10 10.000 0.000907 +104%
7.3.24 100.000 0.014866 +136%
8.0.9 10.000 0.000924 +106%
8.0.7 100.000 0.018646 +171%
7.4.33 100.000 0.014039 +129%
7.4.32 100.000 0.014241 +131%
7.4.29 100.000 0.016333 +150%
8.0.3 10.000 0.001474 +170%
8.0.3 100.000 0.019953 +183%
8.0.2 100.000 0.021469 +197%
8.0.0 100.000 0.015689 +144%
7.4.30 100.000 0.012571 +115%
8.0.8 10.000 0.001081 +124%
8.0.7 10.000 0.001107 +127%
7.4.28 100.000 0.016541 +152%
8.0.2 10.000 0.001728 +199%
7.4.27 100.000 0.016192 +148%
7.4.7 100.000 0.015968 +146%
8.0.0 10.000 0.001008 +116%
7.3.29 100.000 0.015758 +144%
7.3.28 100.000 0.019909 +182%
7.4.33 10.000 0.001282 +148%
7.4.24 100.000 0.015696 +144%
7.4.23 100.000 0.016127 +148%
7.4.22 100.000 0.015650 +143%
7.3.30 100.000 0.016273 +149%
7.4.32 10.000 0.001079 +124%
7.4.30 10.000 0.001008 +116%
7.4.29 10.000 0.001015 +117%
7.4.28 10.000 0.001393 +160%
7.4.27 10.000 0.001495 +172%
7.4.24 10.000 0.001433 +165%
7.4.23 10.000 0.001079 +124%
7.4.22 10.000 0.001041 +120%
7.4.21 10.000 0.000947 +109%
7.4.21 100.000 0.017696 +162%
7.4.20 100.000 0.017430 +160%
7.4.16 100.000 0.020259 +186%
7.4.15 100.000 0.020676 +190%
7.4.13 100.000 0.015500 +142%
7.4.12 100.000 0.016236 +149%
7.4.11 10.000 0.000990 +114%
7.4.11 100.000 0.017163 +157%
7.4.10 10.000 0.001026 +118%
7.4.10 100.000 0.014799 +136%
7.3.31 100.000 0.015460 +142%
7.4.20 10.000 0.000938 +108%
7.4.16 10.000 0.001181 +136%
7.4.15 10.000 0.001383 +159%
7.4.13 10.000 0.001105 +127%
7.4.12 10.000 0.001167 +134%
7.4.7 10.000 0.001017 +117%
7.3.33 100.000 0.014713 +135%
7.3.33 10.000 0.001374 +158%
7.3.31 10.000 0.001903 +219%
7.3.30 10.000 0.002713 +312%
7.3.29 10.000 0.002351 +271%
7.3.28 10.000 0.001377 +159%
7.3.27 10.000 0.001529 +176%
7.3.24 10.000 0.001206 +139%
7.3.23 10.000 0.001290 +148%
7.3.22 10.000 0.001044 +120%
7.3.19 10.000 0.001118 +129%
7.2.34 10.000 0.001826 +210%
7.2.33 10.000 0.001334 +154%
7.2.31 10.000 0.001299 +150%
7.1.33 10.000 0.002201 +253%
7.0.33 10.000 0.001833 +211%
5.6.40 10.000 0.006360 +732%