CompactTest

Generate an associative array with compact


<?php 

$this
->start($loop);

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

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

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 0.030060 +179%
8.3.10 100.000 0.027047 +161%
8.3.9 100.000 0.026293 +157%
7.4.23 100.000 0.021821 +130%
7.4.22 100.000 0.020012 +119%
8.3.13 10.000 0.003620 +212%
7.4.21 100.000 0.020625 +123%
7.4.20 100.000 0.023272 +139%
7.4.16 100.000 0.028194 +168%
7.4.15 100.000 0.028863 +172%
7.4.13 100.000 0.020628 +123%
7.4.12 100.000 0.020002 +119%
7.4.11 100.000 0.023171 +138%
7.4.10 100.000 0.020988 +125%
7.3.33 100.000 0.021660 +129%
7.3.31 100.000 0.021659 +129%
7.3.30 100.000 0.020660 +123%
7.3.29 100.000 0.021395 +128%
7.3.28 100.000 0.025373 +151%
7.3.27 100.000 0.029158 +174%
5.6.40 100.000 0.089301 +533%
8.3.10 10.000 0.003365 +197%
7.3.24 100.000 0.020627 +123%
7.3.23 100.000 0.023746 +142%
7.3.22 100.000 0.021476 +128%
7.3.19 100.000 0.022548 +134%
7.2.34 100.000 0.025233 +151%
7.2.33 100.000 0.024864 +148%
7.2.31 100.000 0.024631 +147%
7.1.33 100.000 0.028716 +171%
7.0.33 100.000 0.027756 +166%
8.3.9 10.000 0.003303 +193%
8.0.26 100.000 0.019571 +117%
8.0.30 10.000 0.002805 +164%
8.0.30 100.000 0.022370 +133%
8.0.29 100.000 0.016765 100%
8.0.28 100.000 0.017806 +106%
8.0.27 100.000 0.020246 +121%
8.0.25 100.000 0.018226 +109%
8.0.24 100.000 0.019335 +115%
8.0.23 100.000 0.021842 +130%
8.0.20 100.000 0.016875 +101%
8.0.19 100.000 0.024274 +145%
8.0.17 100.000 0.024122 +144%
8.0.16 100.000 0.021209 +127%
8.0.14 100.000 0.023045 +137%
8.0.25 10.000 0.002048 +120%
8.0.11 100.000 0.020179 +120%
8.0.10 100.000 0.022077 +132%
8.0.28 10.000 0.002000 +117%
8.0.27 10.000 0.002650 +155%
8.0.26 10.000 0.002811 +164%
8.0.9 100.000 0.020284 +121%
8.0.8 100.000 0.021592 +129%
8.0.29 10.000 0.001711 100%
8.0.3 10.000 0.003387 +198%
8.0.3 100.000 0.026907 +160%
7.4.27 100.000 0.023835 +142%
8.0.8 10.000 0.003139 +184%
8.0.7 100.000 0.022009 +131%
8.0.7 10.000 0.002822 +165%
7.4.24 100.000 0.022116 +132%
8.0.24 10.000 0.002238 +131%
8.0.23 10.000 0.001782 +104%
8.0.20 10.000 0.002007 +117%
8.0.19 10.000 0.002797 +164%
8.0.17 10.000 0.002732 +160%
8.0.16 10.000 0.002542 +149%
8.0.14 10.000 0.002713 +159%
8.0.11 10.000 0.002539 +148%
8.0.10 10.000 0.002527 +148%
8.0.9 10.000 0.002375 +139%
8.0.2 10.000 0.003930 +230%
8.0.2 100.000 0.031886 +190%
8.0.0 100.000 0.021239 +127%
7.4.33 100.000 0.020020 +119%
7.4.32 100.000 0.020943 +125%
7.4.30 100.000 0.016989 +101%
7.4.29 100.000 0.022991 +137%
7.4.28 100.000 0.022519 +134%
8.0.0 10.000 0.002497 +146%
7.4.33 10.000 0.002422 +142%
7.4.32 10.000 0.002330 +136%
7.4.30 10.000 0.002031 +119%
7.4.29 10.000 0.002816 +165%
7.4.28 10.000 0.002510 +147%
7.4.27 10.000 0.002771 +162%
7.4.24 10.000 0.002843 +166%
7.4.23 10.000 0.002635 +154%
7.4.22 10.000 0.002407 +141%
7.4.21 10.000 0.002678 +157%
7.4.20 10.000 0.003113 +182%
7.4.16 10.000 0.003353 +196%
7.4.7 10.000 0.002739 +160%
7.4.7 100.000 0.021597 +129%
7.4.15 10.000 0.003951 +231%
7.4.13 10.000 0.002302 +135%
7.4.12 10.000 0.002566 +150%
7.4.11 10.000 0.002664 +156%
7.4.10 10.000 0.002473 +145%
7.3.33 10.000 0.002677 +156%
7.3.31 10.000 0.002846 +166%
7.3.30 10.000 0.002920 +171%
7.3.29 10.000 0.003011 +176%
7.3.28 10.000 0.002989 +175%
7.3.27 10.000 0.003575 +209%
7.3.24 10.000 0.002479 +145%
7.3.23 10.000 0.002928 +171%
7.3.22 10.000 0.002685 +157%
7.3.19 10.000 0.002651 +155%
7.2.34 10.000 0.003178 +186%
7.2.33 10.000 0.002916 +170%
7.2.31 10.000 0.003558 +208%
7.1.33 10.000 0.004137 +242%
7.0.33 10.000 0.003779 +221%
5.6.40 10.000 0.011266 +659%