SumForeachTest

Create loop with foreach (key/value) and sum value


<?php 

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

$this->start($loop);

foreach (
$values as $key => $value) {
    
$values[$key]++;
}

return 
$this->end();
PHP Loops Seconds Percent
8.0.30 10.000 0.000555 +168%
8.0.30 100.000 0.006059 +129%
8.0.9 100.000 0.005910 +125%
8.0.8 100.000 0.005663 +120%
7.3.13 100.000 0.005060 +107%
7.3.12 100.000 0.005051 +107%
7.3.11 100.000 0.005321 +113%
7.2.34 100.000 0.005493 +117%
7.2.33 100.000 0.005450 +116%
7.2.31 100.000 0.005445 +116%
7.2.30 100.000 0.005424 +115%
7.2.29 100.000 0.005028 +107%
7.2.28 100.000 0.004880 +104%
7.2.27 100.000 0.005194 +110%
7.2.26 100.000 0.005240 +111%
7.2.25 100.000 0.005497 +117%
7.2.24 100.000 0.005097 +108%
7.2.22 100.000 0.005776 +123%
7.2.21 100.000 0.005890 +125%
7.1.33 100.000 0.005909 +125%
7.1.32 100.000 0.015476 +329%
7.1.31 100.000 0.015272 +324%
7.1.0 100.000 0.029230 +621%
7.0.33 100.000 0.015678 +333%
7.0.7 100.000 0.031810 +675%
5.6.40 100.000 0.021803 +463%
5.6.22 100.000 0.146846 +3117%
5.5.36 100.000 0.148211 +3146%
5.4.45 100.000 0.149297 +3169%
5.3.29 100.000 0.143413 +3045%
8.0.29 10.000 0.000330 100%
8.0.29 100.000 0.004895 +104%
8.0.28 100.000 0.004710 100%
8.0.27 100.000 0.005256 +112%
8.0.26 100.000 0.005539 +118%
8.0.25 100.000 0.005265 +112%
8.0.24 100.000 0.004907 +104%
8.0.23 100.000 0.005563 +118%
8.0.20 100.000 0.004808 +102%
8.0.19 100.000 0.005212 +111%
8.0.17 100.000 0.005119 +109%
8.0.16 100.000 0.005429 +115%
8.0.14 100.000 0.005522 +117%
8.0.11 10.000 0.000443 +134%
8.0.11 100.000 0.004936 +105%
8.0.10 10.000 0.000526 +159%
8.0.10 100.000 0.004971 +106%
7.3.15 100.000 0.004947 +105%
8.0.28 10.000 0.000382 +116%
8.0.27 10.000 0.000449 +136%
8.0.26 10.000 0.000409 +124%
8.0.25 10.000 0.000401 +122%
8.0.24 10.000 0.000441 +134%
8.0.23 10.000 0.000412 +125%
8.0.20 10.000 0.000357 +108%
8.0.19 10.000 0.000599 +182%
8.0.17 10.000 0.000540 +164%
8.0.16 10.000 0.000531 +161%
8.0.14 10.000 0.000498 +151%
7.3.14 100.000 0.005022 +107%
8.0.9 10.000 0.000483 +147%
8.0.7 100.000 0.005424 +115%
8.0.8 10.000 0.000560 +170%
8.0.3 100.000 0.006437 +137%
8.0.2 100.000 0.007600 +161%
8.0.0 100.000 0.005331 +113%
7.4.33 100.000 0.005381 +114%
8.0.7 10.000 0.000494 +150%
7.4.32 100.000 0.005031 +107%
7.4.30 100.000 0.004859 +103%
7.4.29 100.000 0.005150 +109%
7.4.27 100.000 0.005329 +113%
8.0.3 10.000 0.000646 +196%
7.4.28 100.000 0.005175 +110%
7.4.24 100.000 0.005739 +122%
7.4.7 100.000 0.005656 +120%
7.4.6 100.000 0.005049 +107%
7.4.5 100.000 0.005020 +107%
7.4.4 100.000 0.005011 +106%
8.0.2 10.000 0.000653 +198%
8.0.0 10.000 0.000510 +155%
7.4.3 100.000 0.004862 +103%
7.4.33 10.000 0.000467 +142%
7.4.32 10.000 0.000469 +142%
7.4.30 10.000 0.000441 +134%
7.4.29 10.000 0.000555 +168%
7.3.17 100.000 0.004982 +106%
7.3.16 100.000 0.005370 +114%
7.4.28 10.000 0.000479 +145%
7.4.23 100.000 0.005350 +114%
7.4.21 100.000 0.005213 +111%
7.4.20 100.000 0.005371 +114%
7.4.24 10.000 0.000496 +150%
7.4.16 100.000 0.006313 +134%
7.4.15 10.000 0.000786 +238%
7.4.15 100.000 0.007454 +158%
7.4.13 100.000 0.005098 +108%
7.4.27 10.000 0.000523 +159%
7.4.23 10.000 0.000491 +149%
7.4.22 10.000 0.000467 +142%
7.4.22 100.000 0.004928 +105%
7.4.21 10.000 0.000518 +157%
7.4.20 10.000 0.000571 +173%
7.4.16 10.000 0.000674 +204%
7.4.13 10.000 0.000486 +147%
7.4.12 10.000 0.000466 +141%
7.4.12 100.000 0.005702 +121%
7.4.11 100.000 0.005385 +114%
7.4.11 10.000 0.000542 +164%
7.4.10 10.000 0.000476 +144%
7.4.10 100.000 0.005277 +112%
7.4.7 10.000 0.000494 +150%
7.4.6 10.000 0.000584 +177%
7.4.5 10.000 0.000547 +166%
7.4.4 10.000 0.000527 +160%
7.4.2 10.000 0.000623 +189%
7.4.2 100.000 0.005422 +115%
7.4.3 10.000 0.000476 +144%
7.4.1 10.000 0.000597 +181%
7.4.1 100.000 0.004940 +105%
7.4.0 100.000 0.005307 +113%
7.3.33 100.000 0.005314 +113%
7.3.31 100.000 0.005247 +111%
7.3.18 100.000 0.005287 +112%
7.3.33 10.000 0.000479 +145%
7.3.30 100.000 0.005098 +108%
7.4.0 10.000 0.000476 +144%
7.3.31 10.000 0.000552 +167%
7.3.29 10.000 0.000485 +147%
7.3.29 100.000 0.005086 +108%
7.3.28 10.000 0.000564 +171%
7.3.28 100.000 0.005050 +107%
7.3.27 10.000 0.000652 +198%
7.3.27 100.000 0.006435 +137%
7.3.30 10.000 0.000521 +158%
7.3.24 10.000 0.000474 +144%
7.3.24 100.000 0.005219 +111%
7.3.23 10.000 0.000531 +161%
7.3.23 100.000 0.005762 +122%
7.3.22 10.000 0.000610 +185%
7.3.22 100.000 0.005729 +122%
7.3.19 10.000 0.000533 +162%
7.3.19 100.000 0.005342 +113%
7.3.18 10.000 0.000538 +163%
7.3.17 10.000 0.000493 +149%
7.3.9 10.000 0.000504 +153%
7.3.9 100.000 0.005770 +122%
7.3.8 10.000 0.000455 +138%
7.3.8 100.000 0.005814 +123%
7.3.16 10.000 0.000506 +153%
7.3.15 10.000 0.000547 +166%
7.3.14 10.000 0.000606 +184%
7.3.13 10.000 0.000559 +170%
7.3.12 10.000 0.000643 +195%
7.3.11 10.000 0.000431 +131%
7.2.34 10.000 0.000503 +153%
7.2.33 10.000 0.000572 +173%
7.2.31 10.000 0.000585 +177%
7.2.30 10.000 0.000574 +174%
7.2.29 10.000 0.000500 +152%
7.2.28 10.000 0.000544 +165%
7.2.27 10.000 0.000722 +219%
7.2.26 10.000 0.000590 +179%
7.2.25 10.000 0.000519 +157%
7.2.24 10.000 0.000435 +132%
7.2.22 10.000 0.000494 +150%
7.2.21 10.000 0.000488 +148%
7.1.33 10.000 0.000603 +183%
7.1.32 10.000 0.000555 +168%
7.1.31 10.000 0.000500 +152%
7.1.0 10.000 0.002441 +740%
7.0.33 10.000 0.000586 +178%
7.0.7 10.000 0.002594 +786%
5.6.40 10.000 0.003053 +926%
5.6.22 10.000 0.018864 +5720%
5.5.36 10.000 0.018476 +5602%
5.4.45 10.000 0.018684 +5665%
5.3.29 10.000 0.016766 +5084%