ArrayWalkClosureDefinedTest

Update array values using array_walk and previous defined closure function


<?php 

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

$closure = function(&$value) {
    
$value++;
};

$this->start($loop);

array_walk($values$closure);

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 0.019164 +221%
8.3.10 100.000 0.014923 +172%
8.3.9 100.000 0.013935 +161%
7.3.33 100.000 0.010350 +120%
7.3.31 100.000 0.008980 +104%
7.3.30 100.000 0.009130 +105%
7.3.29 100.000 0.009425 +109%
7.3.28 100.000 0.009406 +109%
7.3.27 100.000 0.012328 +142%
7.3.24 100.000 0.009987 +115%
7.3.23 100.000 0.011050 +128%
7.3.22 100.000 0.009514 +110%
7.3.19 100.000 0.010251 +118%
7.3.18 100.000 0.009752 +113%
7.3.17 100.000 0.010061 +116%
7.3.16 100.000 0.008655 100%
7.3.15 100.000 0.009837 +114%
7.3.14 100.000 0.009746 +113%
7.3.13 100.000 0.009457 +109%
7.3.12 100.000 0.009052 +105%
7.3.11 100.000 0.010999 +127%
7.3.9 100.000 0.011766 +136%
7.3.8 100.000 0.012994 +150%
7.2.29 100.000 0.009394 +109%
8.3.13 10.000 0.002589 +207%
7.2.34 100.000 0.010341 +119%
7.2.33 100.000 0.010995 +127%
7.2.31 100.000 0.010014 +116%
7.2.30 100.000 0.009852 +114%
8.3.10 10.000 0.002074 +166%
7.2.28 100.000 0.008942 +103%
7.2.27 100.000 0.010161 +117%
7.2.26 100.000 0.011082 +128%
7.2.25 100.000 0.009747 +113%
7.2.24 100.000 0.011663 +135%
7.2.22 100.000 0.012593 +145%
7.2.21 100.000 0.012927 +149%
7.1.33 100.000 0.012430 +144%
7.1.32 100.000 0.019948 +230%
7.1.31 100.000 0.017015 +197%
7.1.0 100.000 0.069219 +800%
7.0.33 100.000 0.009690 +112%
7.0.7 100.000 0.067724 +782%
5.6.40 100.000 0.024160 +279%
5.6.22 100.000 0.119570 +1381%
5.5.36 100.000 0.120494 +1392%
5.4.45 100.000 0.121050 +1399%
5.3.29 100.000 0.112609 +1301%
8.3.9 10.000 0.002040 +163%
8.0.30 100.000 0.012587 +145%
8.0.29 100.000 0.010421 +120%
8.0.28 100.000 0.010245 +118%
8.0.27 100.000 0.010589 +122%
8.0.26 100.000 0.011528 +133%
8.0.25 100.000 0.010891 +126%
8.0.24 100.000 0.010220 +118%
8.0.23 100.000 0.009881 +114%
8.0.20 10.000 0.001453 +116%
8.0.20 100.000 0.010070 +116%
8.0.19 10.000 0.002083 +166%
8.0.19 100.000 0.010869 +126%
8.0.17 10.000 0.001917 +153%
8.0.17 100.000 0.011566 +134%
8.0.16 10.000 0.002047 +164%
8.0.16 100.000 0.011283 +130%
8.0.14 10.000 0.002188 +175%
8.0.14 100.000 0.011267 +130%
8.0.11 100.000 0.009890 +114%
8.0.10 100.000 0.009994 +115%
8.0.9 100.000 0.010702 +124%
8.0.8 100.000 0.011387 +132%
8.0.7 100.000 0.010288 +119%
8.0.3 100.000 0.013284 +153%
8.0.2 100.000 0.015556 +180%
8.0.0 100.000 0.010460 +121%
7.4.33 100.000 0.011438 +132%
7.4.32 100.000 0.009855 +114%
7.4.30 100.000 0.010019 +116%
7.4.28 100.000 0.011421 +132%
7.4.27 100.000 0.010787 +125%
7.4.24 100.000 0.010304 +119%
7.4.23 100.000 0.009860 +114%
7.4.22 100.000 0.009913 +115%
8.0.11 10.000 0.001763 +141%
8.0.10 10.000 0.001643 +131%
8.0.0 10.000 0.001957 +156%
7.4.29 100.000 0.010279 +119%
7.4.21 10.000 0.002253 +180%
7.4.21 100.000 0.009505 +110%
7.4.20 10.000 0.002057 +164%
7.4.20 100.000 0.011072 +128%
7.4.16 100.000 0.012287 +142%
7.4.15 100.000 0.013764 +159%
7.4.33 10.000 0.001732 +138%
7.4.32 10.000 0.001751 +140%
7.4.30 10.000 0.001411 +113%
7.4.29 10.000 0.001769 +141%
7.4.24 10.000 0.001965 +157%
7.4.23 10.000 0.001796 +144%
7.4.22 10.000 0.001768 +141%
7.4.13 100.000 0.010275 +119%
7.4.12 100.000 0.010757 +124%
7.4.11 100.000 0.011256 +130%
7.4.10 100.000 0.010523 +122%
8.0.2 10.000 0.005051 +404%
7.4.0 100.000 0.012455 +144%
8.0.30 10.000 0.002175 +174%
8.0.29 10.000 0.001252 100%
8.0.28 10.000 0.001437 +115%
8.0.27 10.000 0.001998 +160%
8.0.26 10.000 0.001534 +123%
8.0.25 10.000 0.001608 +128%
8.0.24 10.000 0.001635 +131%
8.0.23 10.000 0.001439 +115%
8.0.9 10.000 0.001836 +147%
8.0.8 10.000 0.002349 +188%
8.0.7 10.000 0.002068 +165%
8.0.3 10.000 0.002435 +195%
7.4.28 10.000 0.002070 +165%
7.4.27 10.000 0.001946 +155%
7.4.16 10.000 0.002331 +186%
7.4.15 10.000 0.002499 +200%
7.4.13 10.000 0.001705 +136%
7.4.12 10.000 0.001514 +121%
7.4.11 10.000 0.002199 +176%
7.4.10 10.000 0.001822 +146%
7.4.7 10.000 0.001875 +150%
7.4.7 100.000 0.010243 +118%
7.4.6 10.000 0.001926 +154%
7.4.6 100.000 0.009531 +110%
7.4.5 10.000 0.002065 +165%
7.4.5 100.000 0.009522 +110%
7.4.4 10.000 0.001929 +154%
7.4.4 100.000 0.010666 +123%
7.4.3 10.000 0.002234 +179%
7.4.3 100.000 0.009634 +111%
7.4.1 100.000 0.009665 +112%
7.4.2 10.000 0.002288 +183%
7.4.2 100.000 0.011061 +128%
7.4.1 10.000 0.002018 +161%
7.4.0 10.000 0.001931 +154%
7.3.33 10.000 0.001570 +125%
7.3.31 10.000 0.001872 +150%
7.3.30 10.000 0.001574 +126%
7.3.29 10.000 0.001726 +138%
7.3.28 10.000 0.001933 +154%
7.3.27 10.000 0.002221 +177%
7.3.24 10.000 0.001595 +127%
7.3.23 10.000 0.001769 +141%
7.3.22 10.000 0.001814 +145%
7.3.19 10.000 0.001876 +150%
7.3.18 10.000 0.001692 +135%
7.3.17 10.000 0.001695 +135%
7.3.16 10.000 0.001579 +126%
7.3.15 10.000 0.001739 +139%
7.3.14 10.000 0.002120 +169%
7.3.13 10.000 0.002073 +166%
7.3.12 10.000 0.001979 +158%
7.3.11 10.000 0.001653 +132%
7.3.9 10.000 0.001600 +128%
7.3.8 10.000 0.001633 +130%
7.2.34 10.000 0.001751 +140%
7.2.33 10.000 0.001840 +147%
7.2.31 10.000 0.002105 +168%
7.2.30 10.000 0.001564 +125%
7.2.29 10.000 0.001719 +137%
7.2.28 10.000 0.001750 +140%
7.2.27 10.000 0.002270 +181%
7.2.26 10.000 0.001891 +151%
7.2.25 10.000 0.001559 +125%
7.2.24 10.000 0.001552 +124%
7.2.22 10.000 0.001603 +128%
7.2.21 10.000 0.001503 +120%
7.1.33 10.000 0.001775 +142%
7.1.32 10.000 0.001668 +133%
7.1.31 10.000 0.001585 +127%
7.1.0 10.000 0.006415 +513%
7.0.33 10.000 0.001568 +125%
7.0.7 10.000 0.006429 +514%
5.6.40 10.000 0.003040 +243%
5.6.22 10.000 0.012629 +1009%
5.5.36 10.000 0.012586 +1006%
5.4.45 10.000 0.012599 +1007%
5.3.29 10.000 0.012354 +987%