ArrayMapClosureDefinedTest

Update array values using array_map and previous defined closure function


<?php 

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

$closure = function($value) {
    return 
$value 1;
};

$this->start($loop);

$values array_map($closure$values);

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 0.011122 +167%
8.3.10 100.000 0.008444 +127%
8.3.9 100.000 0.007972 +120%
7.3.33 100.000 0.007731 +116%
7.3.31 100.000 0.007462 +112%
7.3.30 100.000 0.007707 +116%
7.3.29 100.000 0.007349 +110%
7.3.28 100.000 0.007680 +115%
7.3.27 100.000 0.009359 +141%
7.3.24 100.000 0.008023 +121%
7.3.23 100.000 0.009025 +136%
7.3.22 100.000 0.007646 +115%
7.3.19 100.000 0.007706 +116%
7.3.18 100.000 0.006871 +103%
7.3.17 100.000 0.007567 +114%
7.3.16 100.000 0.007323 +110%
7.3.15 100.000 0.007100 +107%
7.3.14 100.000 0.007769 +117%
7.3.13 100.000 0.007138 +107%
7.3.12 100.000 0.006656 100%
7.3.11 100.000 0.007344 +110%
7.3.9 100.000 0.008212 +123%
7.3.8 100.000 0.008919 +134%
7.2.29 100.000 0.007741 +116%
8.3.13 10.000 0.001015 +169%
7.2.34 100.000 0.008598 +129%
7.2.33 100.000 0.008127 +122%
7.2.31 100.000 0.008449 +127%
7.2.30 100.000 0.009214 +138%
8.3.10 10.000 0.001061 +177%
7.2.28 100.000 0.008124 +122%
7.2.27 100.000 0.008059 +121%
7.2.26 100.000 0.008201 +123%
7.2.25 100.000 0.006763 +102%
7.2.24 100.000 0.008516 +128%
7.2.22 100.000 0.009949 +149%
7.2.21 100.000 0.009822 +148%
7.1.33 100.000 0.013700 +206%
7.1.32 100.000 0.018673 +281%
7.1.31 100.000 0.014994 +225%
7.1.0 100.000 0.041051 +617%
7.0.33 100.000 0.020058 +301%
7.0.7 100.000 0.037264 +560%
5.6.40 100.000 0.093652 +1407%
5.6.22 100.000 0.230085 +3457%
5.5.36 100.000 0.234055 +3517%
5.4.45 100.000 0.221204 +3323%
5.3.29 100.000 0.265187 +3984%
8.3.9 10.000 0.001273 +212%
8.0.30 100.000 0.009548 +143%
8.0.29 100.000 0.008184 +123%
8.0.28 100.000 0.008221 +124%
8.0.27 100.000 0.008049 +121%
8.0.26 100.000 0.007683 +115%
8.0.25 100.000 0.007715 +116%
8.0.24 100.000 0.007143 +107%
8.0.23 100.000 0.008189 +123%
8.0.20 10.000 0.000683 +114%
8.0.20 100.000 0.007094 +107%
8.0.19 10.000 0.000916 +153%
8.0.19 100.000 0.007723 +116%
8.0.17 10.000 0.000867 +145%
8.0.17 100.000 0.007904 +119%
8.0.16 10.000 0.000957 +160%
8.0.16 100.000 0.007985 +120%
8.0.14 10.000 0.000912 +152%
8.0.14 100.000 0.007868 +118%
8.0.11 100.000 0.008240 +124%
8.0.10 100.000 0.007594 +114%
8.0.9 100.000 0.007490 +113%
8.0.8 100.000 0.008343 +125%
8.0.7 100.000 0.007500 +113%
8.0.3 100.000 0.009329 +140%
8.0.2 100.000 0.011509 +173%
8.0.0 100.000 0.008044 +121%
7.4.33 100.000 0.008043 +121%
7.4.32 100.000 0.006892 +104%
7.4.30 100.000 0.006863 +103%
7.4.28 100.000 0.008443 +127%
7.4.27 100.000 0.007641 +115%
7.4.24 100.000 0.007594 +114%
7.4.23 100.000 0.007410 +111%
7.4.22 100.000 0.007670 +115%
8.0.11 10.000 0.000878 +146%
8.0.10 10.000 0.000871 +145%
8.0.0 10.000 0.000893 +149%
7.4.29 100.000 0.007110 +107%
7.4.21 10.000 0.000744 +124%
7.4.21 100.000 0.007711 +116%
7.4.20 10.000 0.000882 +147%
7.4.20 100.000 0.008070 +121%
7.4.16 100.000 0.009247 +139%
7.4.15 100.000 0.011417 +172%
7.4.33 10.000 0.000801 +133%
7.4.32 10.000 0.000689 +115%
7.4.30 10.000 0.000647 +108%
7.4.29 10.000 0.000865 +144%
7.4.24 10.000 0.000925 +154%
7.4.23 10.000 0.000884 +147%
7.4.22 10.000 0.000864 +144%
7.4.13 100.000 0.007399 +111%
7.4.12 100.000 0.008567 +129%
7.4.11 100.000 0.007737 +116%
7.4.10 100.000 0.007889 +119%
8.0.2 10.000 0.001257 +209%
7.4.0 100.000 0.008024 +121%
8.0.30 10.000 0.001014 +169%
8.0.29 10.000 0.000626 +104%
8.0.28 10.000 0.000720 +120%
8.0.27 10.000 0.000889 +148%
8.0.26 10.000 0.000820 +137%
8.0.25 10.000 0.000906 +151%
8.0.24 10.000 0.000744 +124%
8.0.23 10.000 0.000600 100%
8.0.9 10.000 0.000823 +137%
8.0.8 10.000 0.000890 +148%
8.0.7 10.000 0.000951 +159%
8.0.3 10.000 0.001166 +194%
7.4.28 10.000 0.001025 +171%
7.4.27 10.000 0.000962 +160%
7.4.16 10.000 0.001061 +177%
7.4.15 10.000 0.001128 +188%
7.4.13 10.000 0.000772 +129%
7.4.12 10.000 0.000760 +127%
7.4.11 10.000 0.001068 +178%
7.4.10 10.000 0.000890 +148%
7.4.7 10.000 0.000974 +162%
7.4.7 100.000 0.007907 +119%
7.4.6 10.000 0.000860 +143%
7.4.6 100.000 0.007564 +114%
7.4.5 10.000 0.000780 +130%
7.4.5 100.000 0.007748 +116%
7.4.4 10.000 0.000805 +134%
7.4.4 100.000 0.007300 +110%
7.4.3 10.000 0.000852 +142%
7.4.3 100.000 0.007034 +106%
7.4.1 100.000 0.007993 +120%
7.4.2 10.000 0.001078 +180%
7.4.2 100.000 0.007649 +115%
7.4.1 10.000 0.001038 +173%
7.4.0 10.000 0.000720 +120%
7.3.33 10.000 0.000778 +130%
7.3.31 10.000 0.000957 +159%
7.3.30 10.000 0.000941 +157%
7.3.29 10.000 0.000874 +146%
7.3.28 10.000 0.000880 +147%
7.3.27 10.000 0.001134 +189%
7.3.24 10.000 0.000815 +136%
7.3.23 10.000 0.000927 +154%
7.3.22 10.000 0.000819 +137%
7.3.19 10.000 0.000884 +147%
7.3.18 10.000 0.000988 +165%
7.3.17 10.000 0.000857 +143%
7.3.16 10.000 0.000983 +164%
7.3.15 10.000 0.000944 +157%
7.3.14 10.000 0.001166 +194%
7.3.13 10.000 0.001108 +185%
7.3.12 10.000 0.001009 +168%
7.3.11 10.000 0.000698 +116%
7.3.9 10.000 0.000776 +129%
7.3.8 10.000 0.000632 +105%
7.2.34 10.000 0.000970 +162%
7.2.33 10.000 0.001007 +168%
7.2.31 10.000 0.001069 +178%
7.2.30 10.000 0.000990 +165%
7.2.29 10.000 0.000909 +151%
7.2.28 10.000 0.000944 +157%
7.2.27 10.000 0.001133 +189%
7.2.26 10.000 0.001017 +169%
7.2.25 10.000 0.001023 +170%
7.2.24 10.000 0.000768 +128%
7.2.22 10.000 0.000847 +141%
7.2.21 10.000 0.000747 +124%
7.1.33 10.000 0.000969 +161%
7.1.32 10.000 0.000849 +141%
7.1.31 10.000 0.000843 +140%
7.1.0 10.000 0.003570 +595%
7.0.33 10.000 0.000956 +159%
7.0.7 10.000 0.003350 +558%
5.6.40 10.000 0.008392 +1398%
5.6.22 10.000 0.022634 +3771%
5.5.36 10.000 0.022501 +3749%
5.4.45 10.000 0.021356 +3558%
5.3.29 10.000 0.026258 +4375%