ArrayWalkClosureTest

Update array values using array_walk and closure function


<?php 

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

$this->start($loop);

array_walk($values, function(&$value) {
    
$value++;
});

return 
$this->end();
PHP Loops Seconds Percent
8.0.30 10.000 0.001629 +153%
8.0.30 100.000 0.010410 +127%
8.0.9 100.000 0.009421 +115%
8.0.8 100.000 0.010057 +123%
7.3.13 100.000 0.008788 +107%
7.3.12 100.000 0.008302 +101%
7.3.11 100.000 0.009417 +115%
7.2.34 100.000 0.009094 +111%
7.2.33 100.000 0.009539 +117%
7.2.31 100.000 0.009233 +113%
7.2.30 100.000 0.008633 +105%
7.2.29 100.000 0.008739 +107%
7.2.28 100.000 0.008428 +103%
7.2.27 100.000 0.009306 +114%
7.2.26 100.000 0.009506 +116%
7.2.25 100.000 0.008430 +103%
7.2.24 100.000 0.009864 +120%
7.2.22 100.000 0.012098 +148%
7.2.21 100.000 0.011319 +138%
7.1.33 100.000 0.009790 +120%
7.1.32 100.000 0.013939 +170%
7.1.31 100.000 0.012851 +157%
7.1.0 100.000 0.059733 +730%
7.0.33 100.000 0.009524 +116%
7.0.7 100.000 0.057556 +703%
5.6.40 100.000 0.022743 +278%
5.6.22 100.000 0.120036 +1466%
5.5.36 100.000 0.120973 +1478%
5.4.45 100.000 0.120513 +1472%
5.3.29 100.000 0.114352 +1397%
8.0.29 10.000 0.001067 +101%
8.0.29 100.000 0.009396 +115%
8.0.28 100.000 0.009073 +111%
8.0.27 100.000 0.009526 +116%
8.0.26 100.000 0.009866 +121%
8.0.25 100.000 0.009825 +120%
8.0.24 100.000 0.008976 +110%
8.0.23 100.000 0.009675 +118%
8.0.20 100.000 0.008892 +109%
8.0.19 100.000 0.009015 +110%
8.0.17 100.000 0.011183 +137%
8.0.16 100.000 0.009578 +117%
8.0.14 100.000 0.009721 +119%
8.0.11 10.000 0.001628 +153%
8.0.11 100.000 0.008994 +110%
8.0.10 10.000 0.001727 +163%
8.0.10 100.000 0.008869 +108%
7.3.15 100.000 0.009301 +114%
8.0.28 10.000 0.001202 +113%
8.0.27 10.000 0.001599 +151%
8.0.26 10.000 0.001491 +140%
8.0.25 10.000 0.001341 +126%
8.0.24 10.000 0.001147 +108%
8.0.23 10.000 0.001061 100%
8.0.20 10.000 0.001165 +110%
8.0.19 10.000 0.001838 +173%
8.0.17 10.000 0.001782 +168%
8.0.16 10.000 0.001593 +150%
8.0.14 10.000 0.001814 +171%
7.3.14 100.000 0.009045 +110%
8.0.9 10.000 0.001487 +140%
8.0.7 100.000 0.009485 +116%
8.0.8 10.000 0.001513 +143%
8.0.3 100.000 0.011930 +146%
8.0.2 100.000 0.013178 +161%
8.0.0 100.000 0.009490 +116%
7.4.33 100.000 0.009326 +114%
8.0.7 10.000 0.001860 +175%
7.4.32 100.000 0.008769 +107%
7.4.30 100.000 0.008578 +105%
7.4.29 100.000 0.009366 +114%
7.4.27 100.000 0.009017 +110%
8.0.3 10.000 0.002059 +194%
7.4.28 100.000 0.009462 +116%
7.4.24 100.000 0.009014 +110%
7.4.7 100.000 0.009192 +112%
7.4.6 100.000 0.008595 +105%
7.4.5 100.000 0.009004 +110%
7.4.4 100.000 0.008794 +107%
8.0.2 10.000 0.002762 +260%
8.0.0 10.000 0.001490 +140%
7.4.3 100.000 0.008415 +103%
7.4.33 10.000 0.001314 +124%
7.4.32 10.000 0.001244 +117%
7.4.30 10.000 0.001230 +116%
7.4.29 10.000 0.001724 +162%
7.3.17 100.000 0.008796 +107%
7.3.16 100.000 0.008312 +102%
7.4.28 10.000 0.001561 +147%
7.4.23 100.000 0.008827 +108%
7.4.21 100.000 0.009021 +110%
7.4.20 100.000 0.010284 +126%
7.4.24 10.000 0.001501 +141%
7.4.16 100.000 0.010928 +133%
7.4.15 10.000 0.002171 +205%
7.4.15 100.000 0.014113 +172%
7.4.13 100.000 0.008606 +105%
7.4.27 10.000 0.001572 +148%
7.4.23 10.000 0.001808 +170%
7.4.22 10.000 0.001421 +134%
7.4.22 100.000 0.008549 +104%
7.4.21 10.000 0.001557 +147%
7.4.20 10.000 0.001719 +162%
7.4.16 10.000 0.001934 +182%
7.4.13 10.000 0.001347 +127%
7.4.12 10.000 0.001346 +127%
7.4.12 100.000 0.009849 +120%
7.4.11 100.000 0.009754 +119%
7.4.11 10.000 0.001697 +160%
7.4.10 10.000 0.001429 +135%
7.4.10 100.000 0.008890 +109%
7.4.7 10.000 0.001603 +151%
7.4.6 10.000 0.001755 +165%
7.4.5 10.000 0.001562 +147%
7.4.4 10.000 0.001739 +164%
7.4.2 10.000 0.001896 +179%
7.4.2 100.000 0.009283 +113%
7.4.3 10.000 0.001367 +129%
7.4.1 10.000 0.001912 +180%
7.4.1 100.000 0.008710 +106%
7.4.0 100.000 0.010648 +130%
7.3.33 100.000 0.008995 +110%
7.3.31 100.000 0.008186 100%
7.3.18 100.000 0.008288 +101%
7.3.33 10.000 0.001274 +120%
7.3.30 100.000 0.008312 +102%
7.4.0 10.000 0.001352 +127%
7.3.31 10.000 0.001492 +141%
7.3.29 10.000 0.001487 +140%
7.3.29 100.000 0.008506 +104%
7.3.28 10.000 0.001613 +152%
7.3.28 100.000 0.008394 +103%
7.3.27 10.000 0.001973 +186%
7.3.27 100.000 0.011067 +135%
7.3.30 10.000 0.001556 +147%
7.3.24 10.000 0.001536 +145%
7.3.24 100.000 0.009387 +115%
7.3.23 10.000 0.001411 +133%
7.3.23 100.000 0.009152 +112%
7.3.22 10.000 0.001574 +148%
7.3.22 100.000 0.008875 +108%
7.3.19 10.000 0.001702 +160%
7.3.19 100.000 0.009123 +111%
7.3.18 10.000 0.001523 +143%
7.3.17 10.000 0.001734 +163%
7.3.9 10.000 0.001384 +130%
7.3.9 100.000 0.011025 +135%
7.3.8 10.000 0.001298 +122%
7.3.8 100.000 0.011463 +140%
7.3.16 10.000 0.001853 +175%
7.3.15 10.000 0.001608 +152%
7.3.14 10.000 0.002027 +191%
7.3.13 10.000 0.001725 +163%
7.3.12 10.000 0.001561 +147%
7.3.11 10.000 0.001233 +116%
7.2.34 10.000 0.001468 +138%
7.2.33 10.000 0.001701 +160%
7.2.31 10.000 0.001756 +166%
7.2.30 10.000 0.001939 +183%
7.2.29 10.000 0.001548 +146%
7.2.28 10.000 0.001486 +140%
7.2.27 10.000 0.002061 +194%
7.2.26 10.000 0.001926 +182%
7.2.25 10.000 0.001760 +166%
7.2.24 10.000 0.001463 +138%
7.2.22 10.000 0.001359 +128%
7.2.21 10.000 0.001200 +113%
7.1.33 10.000 0.001571 +148%
7.1.32 10.000 0.001475 +139%
7.1.31 10.000 0.001368 +129%
7.1.0 10.000 0.006199 +584%
7.0.33 10.000 0.001506 +142%
7.0.7 10.000 0.006006 +566%
5.6.40 10.000 0.002922 +275%
5.6.22 10.000 0.012708 +1198%
5.5.36 10.000 0.012851 +1211%
5.4.45 10.000 0.012781 +1204%
5.3.29 10.000 0.012201 +1150%