SumForeachReferenceTest

Create loop with foreach and value as reference and sum value


<?php 

$values 
$this->getRange($loop);

$this->start($loop);

foreach (
$values as &$value) {
    
$value++;
}

return 
$this->end();
PHP Loops Seconds Percent
8.0.30 10.000 0.000830 +206%
8.0.30 100.000 0.005896 +199%
8.0.9 100.000 0.006259 +211%
8.0.8 100.000 0.004796 +162%
7.3.13 100.000 0.004427 +149%
7.3.12 100.000 0.003258 +110%
7.3.11 100.000 0.002965 100%
7.2.34 100.000 0.004436 +150%
7.2.33 100.000 0.004975 +168%
7.2.31 100.000 0.004982 +168%
7.2.30 100.000 0.005100 +172%
7.2.29 100.000 0.004705 +159%
7.2.28 100.000 0.004591 +155%
7.2.27 100.000 0.004590 +155%
7.2.26 100.000 0.004519 +152%
7.2.25 100.000 0.003722 +126%
7.2.24 100.000 0.003372 +114%
7.2.22 100.000 0.003741 +126%
7.2.21 100.000 0.003939 +133%
7.1.33 100.000 0.004520 +152%
7.1.32 100.000 0.004792 +162%
7.1.31 100.000 0.004755 +160%
7.1.0 100.000 0.026352 +889%
7.0.33 100.000 0.008467 +286%
7.0.7 100.000 0.023875 +805%
5.6.40 100.000 0.004749 +160%
5.6.22 100.000 0.033198 +1120%
5.5.36 100.000 0.032145 +1084%
5.4.45 100.000 0.034482 +1163%
5.3.29 100.000 0.025289 +853%
8.0.29 10.000 0.000527 +130%
8.0.29 100.000 0.004245 +143%
8.0.28 100.000 0.003881 +131%
8.0.27 100.000 0.004328 +146%
8.0.26 100.000 0.004473 +151%
8.0.25 100.000 0.004988 +168%
8.0.24 100.000 0.005227 +176%
8.0.23 100.000 0.003516 +119%
8.0.20 100.000 0.003629 +122%
8.0.19 100.000 0.004488 +151%
8.0.17 100.000 0.004058 +137%
8.0.16 100.000 0.005794 +195%
8.0.14 100.000 0.004691 +158%
8.0.11 10.000 0.000753 +187%
8.0.11 100.000 0.004807 +162%
8.0.10 10.000 0.000973 +241%
8.0.10 100.000 0.005168 +174%
7.3.15 100.000 0.004130 +139%
8.0.28 10.000 0.000588 +146%
8.0.27 10.000 0.000743 +184%
8.0.26 10.000 0.000664 +164%
8.0.25 10.000 0.000785 +195%
8.0.24 10.000 0.000703 +174%
8.0.23 10.000 0.000659 +163%
8.0.20 10.000 0.000576 +143%
8.0.19 10.000 0.000852 +211%
8.0.17 10.000 0.000713 +177%
8.0.16 10.000 0.001082 +268%
8.0.14 10.000 0.000830 +206%
7.3.14 100.000 0.004717 +159%
8.0.9 10.000 0.000939 +233%
8.0.7 100.000 0.005413 +183%
8.0.8 10.000 0.000895 +222%
8.0.3 100.000 0.006427 +217%
8.0.2 100.000 0.007640 +258%
8.0.0 100.000 0.005342 +180%
7.4.33 100.000 0.004866 +164%
8.0.7 10.000 0.001041 +258%
7.4.32 100.000 0.005427 +183%
7.4.30 100.000 0.004025 +136%
7.4.29 100.000 0.004755 +160%
7.4.27 100.000 0.004671 +158%
8.0.3 10.000 0.001102 +273%
7.4.28 100.000 0.004409 +149%
7.4.24 100.000 0.004819 +163%
7.4.7 100.000 0.005943 +200%
7.4.6 100.000 0.005211 +176%
7.4.5 100.000 0.005822 +196%
7.4.4 100.000 0.005620 +190%
8.0.2 10.000 0.001193 +296%
8.0.0 10.000 0.000925 +229%
7.4.3 100.000 0.005511 +186%
7.4.33 10.000 0.000658 +163%
7.4.32 10.000 0.000882 +218%
7.4.30 10.000 0.000527 +131%
7.4.29 10.000 0.000826 +205%
7.3.17 100.000 0.004923 +166%
7.3.16 100.000 0.005070 +171%
7.4.28 10.000 0.000822 +204%
7.4.23 100.000 0.005483 +185%
7.4.21 100.000 0.004858 +164%
7.4.20 100.000 0.005154 +174%
7.4.24 10.000 0.000782 +194%
7.4.16 100.000 0.006277 +212%
7.4.15 10.000 0.001244 +308%
7.4.15 100.000 0.008086 +273%
7.4.13 100.000 0.005324 +180%
7.4.27 10.000 0.000858 +212%
7.4.23 10.000 0.000761 +189%
7.4.22 10.000 0.000870 +216%
7.4.22 100.000 0.004884 +165%
7.4.21 10.000 0.000979 +243%
7.4.20 10.000 0.000970 +240%
7.4.16 10.000 0.001060 +263%
7.4.13 10.000 0.000834 +207%
7.4.12 10.000 0.000817 +202%
7.4.12 100.000 0.006797 +229%
7.4.11 100.000 0.005214 +176%
7.4.11 10.000 0.000788 +195%
7.4.10 10.000 0.001004 +249%
7.4.10 100.000 0.005398 +182%
7.4.7 10.000 0.000969 +240%
7.4.6 10.000 0.001034 +256%
7.4.5 10.000 0.001013 +251%
7.4.4 10.000 0.001007 +249%
7.4.2 10.000 0.001077 +267%
7.4.2 100.000 0.005341 +180%
7.4.3 10.000 0.000975 +242%
7.4.1 10.000 0.000995 +247%
7.4.1 100.000 0.004793 +162%
7.4.0 100.000 0.003692 +125%
7.3.33 100.000 0.004222 +142%
7.3.31 100.000 0.004123 +139%
7.3.18 100.000 0.004748 +160%
7.3.33 10.000 0.000630 +156%
7.3.30 100.000 0.004505 +152%
7.4.0 10.000 0.000516 +128%
7.3.31 10.000 0.000706 +175%
7.3.29 10.000 0.000732 +181%
7.3.29 100.000 0.004464 +151%
7.3.28 10.000 0.000767 +190%
7.3.28 100.000 0.004484 +151%
7.3.27 10.000 0.000999 +247%
7.3.27 100.000 0.005642 +190%
7.3.30 10.000 0.000803 +199%
7.3.24 10.000 0.000710 +176%
7.3.24 100.000 0.004711 +159%
7.3.23 10.000 0.000696 +173%
7.3.23 100.000 0.004791 +162%
7.3.22 10.000 0.000758 +188%
7.3.22 100.000 0.004715 +159%
7.3.19 10.000 0.000772 +191%
7.3.19 100.000 0.005235 +177%
7.3.18 10.000 0.000862 +213%
7.3.17 10.000 0.000912 +226%
7.3.9 10.000 0.000480 +119%
7.3.9 100.000 0.003437 +116%
7.3.8 10.000 0.000404 100%
7.3.8 100.000 0.003556 +120%
7.3.16 10.000 0.000886 +219%
7.3.15 10.000 0.000829 +205%
7.3.14 10.000 0.000974 +241%
7.3.13 10.000 0.000926 +229%
7.3.12 10.000 0.000599 +148%
7.3.11 10.000 0.000406 +101%
7.2.34 10.000 0.000695 +172%
7.2.33 10.000 0.000816 +202%
7.2.31 10.000 0.000821 +203%
7.2.30 10.000 0.000780 +193%
7.2.29 10.000 0.000812 +201%
7.2.28 10.000 0.000683 +169%
7.2.27 10.000 0.000878 +218%
7.2.26 10.000 0.000797 +197%
7.2.25 10.000 0.000625 +155%
7.2.24 10.000 0.000433 +107%
7.2.22 10.000 0.000478 +118%
7.2.21 10.000 0.000455 +113%
7.1.33 10.000 0.000726 +180%
7.1.32 10.000 0.000553 +137%
7.1.31 10.000 0.000478 +118%
7.1.0 10.000 0.002814 +697%
7.0.33 10.000 0.000576 +143%
7.0.7 10.000 0.002497 +619%
5.6.40 10.000 0.000687 +170%
5.6.22 10.000 0.004284 +1061%
5.5.36 10.000 0.004165 +1032%
5.4.45 10.000 0.004191 +1038%
5.3.29 10.000 0.003202 +793%