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.3.13 100.000 0.006428 +138%
8.3.10 100.000 0.005635 +121%
8.3.9 100.000 0.004669 100%
7.3.33 100.000 0.005616 +120%
7.3.31 100.000 0.005247 +112%
7.3.30 100.000 0.005098 +109%
7.3.29 100.000 0.005086 +109%
7.3.28 100.000 0.005050 +108%
7.3.27 100.000 0.006435 +138%
7.3.24 100.000 0.005219 +112%
7.3.23 100.000 0.005762 +123%
7.3.22 100.000 0.005729 +123%
7.3.19 100.000 0.005342 +114%
7.3.18 100.000 0.005287 +113%
7.3.17 100.000 0.004982 +107%
7.3.16 100.000 0.005370 +115%
7.3.15 100.000 0.004947 +106%
7.3.14 100.000 0.005022 +108%
7.3.13 100.000 0.005060 +108%
7.3.12 100.000 0.005051 +108%
7.3.11 100.000 0.005321 +114%
7.3.9 100.000 0.005770 +124%
7.3.8 100.000 0.005814 +125%
7.2.29 100.000 0.005028 +108%
8.3.13 10.000 0.001088 +330%
7.2.34 100.000 0.005691 +122%
7.2.33 100.000 0.005450 +117%
7.2.31 100.000 0.005445 +117%
7.2.30 100.000 0.005424 +116%
8.3.10 10.000 0.000669 +203%
7.2.28 100.000 0.004880 +105%
7.2.27 100.000 0.005194 +111%
7.2.26 100.000 0.005240 +112%
7.2.25 100.000 0.005497 +118%
7.2.24 100.000 0.005097 +109%
7.2.22 100.000 0.005776 +124%
7.2.21 100.000 0.005890 +126%
7.1.33 100.000 0.006277 +134%
7.1.32 100.000 0.015476 +331%
7.1.31 100.000 0.015272 +327%
7.1.0 100.000 0.029230 +626%
7.0.33 100.000 0.014721 +315%
7.0.7 100.000 0.031810 +681%
5.6.40 100.000 0.022121 +474%
5.6.22 100.000 0.146846 +3145%
5.5.36 100.000 0.148211 +3175%
5.4.45 100.000 0.149297 +3198%
5.3.29 100.000 0.143413 +3072%
8.3.9 10.000 0.000759 +230%
8.0.30 100.000 0.006404 +137%
8.0.29 100.000 0.004895 +105%
8.0.28 100.000 0.004710 +101%
8.0.27 100.000 0.005256 +113%
8.0.26 100.000 0.005539 +119%
8.0.25 100.000 0.005265 +113%
8.0.24 100.000 0.004907 +105%
8.0.23 100.000 0.005563 +119%
8.0.20 10.000 0.000357 +108%
8.0.20 100.000 0.004808 +103%
8.0.19 10.000 0.000599 +182%
8.0.19 100.000 0.005212 +112%
8.0.17 10.000 0.000540 +164%
8.0.17 100.000 0.005119 +110%
8.0.16 10.000 0.000531 +161%
8.0.16 100.000 0.005429 +116%
8.0.14 10.000 0.000498 +151%
8.0.14 100.000 0.005522 +118%
8.0.11 100.000 0.004936 +106%
8.0.10 100.000 0.004971 +106%
8.0.9 100.000 0.005910 +127%
8.0.8 100.000 0.005663 +121%
8.0.7 100.000 0.005424 +116%
8.0.3 100.000 0.006437 +138%
8.0.2 100.000 0.007600 +163%
8.0.0 100.000 0.005331 +114%
7.4.33 100.000 0.005865 +126%
7.4.32 100.000 0.005031 +108%
7.4.30 100.000 0.004859 +104%
7.4.28 100.000 0.005175 +111%
7.4.27 100.000 0.005329 +114%
7.4.24 100.000 0.005739 +123%
7.4.23 100.000 0.005350 +115%
7.4.22 100.000 0.004928 +106%
8.0.11 10.000 0.000443 +134%
8.0.10 10.000 0.000526 +159%
8.0.0 10.000 0.000510 +155%
7.4.29 100.000 0.005150 +110%
7.4.21 10.000 0.000518 +157%
7.4.21 100.000 0.005213 +112%
7.4.20 10.000 0.000571 +173%
7.4.20 100.000 0.005371 +115%
7.4.16 100.000 0.006313 +135%
7.4.15 100.000 0.007454 +160%
7.4.33 10.000 0.000538 +163%
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.4.24 10.000 0.000496 +150%
7.4.23 10.000 0.000491 +149%
7.4.22 10.000 0.000467 +142%
7.4.13 100.000 0.005098 +109%
7.4.12 100.000 0.005702 +122%
7.4.11 100.000 0.005385 +115%
7.4.10 100.000 0.005277 +113%
8.0.2 10.000 0.000653 +198%
7.4.0 100.000 0.005307 +114%
8.0.30 10.000 0.000655 +199%
8.0.29 10.000 0.000330 100%
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.9 10.000 0.000483 +147%
8.0.8 10.000 0.000560 +170%
8.0.7 10.000 0.000494 +150%
8.0.3 10.000 0.000646 +196%
7.4.28 10.000 0.000479 +145%
7.4.27 10.000 0.000523 +159%
7.4.16 10.000 0.000674 +204%
7.4.15 10.000 0.000786 +238%
7.4.13 10.000 0.000486 +147%
7.4.12 10.000 0.000466 +141%
7.4.11 10.000 0.000542 +164%
7.4.10 10.000 0.000476 +144%
7.4.7 10.000 0.000494 +150%
7.4.7 100.000 0.005656 +121%
7.4.6 10.000 0.000584 +177%
7.4.6 100.000 0.005049 +108%
7.4.5 10.000 0.000547 +166%
7.4.5 100.000 0.005020 +108%
7.4.4 10.000 0.000527 +160%
7.4.4 100.000 0.005011 +107%
7.4.3 10.000 0.000476 +144%
7.4.3 100.000 0.004862 +104%
7.4.1 100.000 0.004940 +106%
7.4.2 10.000 0.000623 +189%
7.4.2 100.000 0.005422 +116%
7.4.1 10.000 0.000597 +181%
7.4.0 10.000 0.000476 +144%
7.3.33 10.000 0.000526 +159%
7.3.31 10.000 0.000552 +167%
7.3.30 10.000 0.000521 +158%
7.3.29 10.000 0.000485 +147%
7.3.28 10.000 0.000564 +171%
7.3.27 10.000 0.000652 +198%
7.3.24 10.000 0.000474 +144%
7.3.23 10.000 0.000531 +161%
7.3.22 10.000 0.000610 +185%
7.3.19 10.000 0.000533 +162%
7.3.18 10.000 0.000538 +163%
7.3.17 10.000 0.000493 +149%
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.3.9 10.000 0.000504 +153%
7.3.8 10.000 0.000455 +138%
7.2.34 10.000 0.000533 +162%
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.000624 +189%
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.000610 +185%
7.0.7 10.000 0.002594 +786%
5.6.40 10.000 0.003061 +928%
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%