ArrayMapClosureTest

Update array values using array_map and closure function


<?php 

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

$this->start($loop);

$values array_map(function($value) {
    return 
$value 1;
}, 
$values);

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 0.010280 +155%
8.3.10 100.000 0.008774 +132%
8.3.9 100.000 0.008589 +129%
7.3.33 100.000 0.007671 +115%
7.3.31 100.000 0.007582 +114%
7.3.30 100.000 0.007667 +115%
7.3.29 100.000 0.007434 +112%
7.3.28 100.000 0.007215 +109%
7.3.27 100.000 0.009480 +143%
7.3.24 100.000 0.007951 +120%
7.3.23 100.000 0.008679 +131%
7.3.22 100.000 0.007259 +109%
7.3.19 100.000 0.007619 +115%
7.3.18 100.000 0.007078 +106%
7.3.17 100.000 0.007914 +119%
7.3.16 100.000 0.007257 +109%
7.3.15 100.000 0.007272 +109%
7.3.14 100.000 0.007613 +115%
7.3.13 100.000 0.007287 +110%
7.3.12 100.000 0.006689 +101%
7.3.11 100.000 0.007156 +108%
7.3.9 100.000 0.008223 +124%
7.3.8 100.000 0.008714 +131%
7.2.29 100.000 0.007596 +114%
8.3.13 10.000 0.001170 +184%
7.2.34 100.000 0.008666 +130%
7.2.33 100.000 0.007980 +120%
7.2.31 100.000 0.008250 +124%
7.2.30 100.000 0.008454 +127%
8.3.10 10.000 0.001121 +176%
7.2.28 100.000 0.007684 +116%
7.2.27 100.000 0.008058 +121%
7.2.26 100.000 0.008165 +123%
7.2.25 100.000 0.006900 +104%
7.2.24 100.000 0.008230 +124%
7.2.22 100.000 0.009925 +149%
7.2.21 100.000 0.009680 +146%
7.1.33 100.000 0.013504 +203%
7.1.32 100.000 0.018920 +285%
7.1.31 100.000 0.015310 +230%
7.1.0 100.000 0.043800 +659%
7.0.33 100.000 0.019998 +301%
7.0.7 100.000 0.038840 +584%
5.6.40 100.000 0.061553 +926%
5.6.22 100.000 0.226418 +3407%
5.5.36 100.000 0.226870 +3414%
5.4.45 100.000 0.217579 +3274%
5.3.29 100.000 0.244325 +3676%
8.3.9 10.000 0.001125 +177%
8.0.30 100.000 0.009585 +144%
8.0.29 100.000 0.008038 +121%
8.0.28 100.000 0.007642 +115%
8.0.27 100.000 0.007574 +114%
8.0.26 100.000 0.007852 +118%
8.0.25 100.000 0.007854 +118%
8.0.24 100.000 0.006986 +105%
8.0.23 100.000 0.008830 +133%
8.0.20 10.000 0.000666 +105%
8.0.20 100.000 0.007219 +109%
8.0.19 10.000 0.001002 +158%
8.0.19 100.000 0.007651 +115%
8.0.17 10.000 0.000953 +150%
8.0.17 100.000 0.008418 +127%
8.0.16 10.000 0.000991 +156%
8.0.16 100.000 0.008272 +124%
8.0.14 10.000 0.000891 +140%
8.0.14 100.000 0.007911 +119%
8.0.11 100.000 0.008328 +125%
8.0.10 100.000 0.007834 +118%
8.0.9 100.000 0.007240 +109%
8.0.8 100.000 0.008114 +122%
8.0.7 100.000 0.007930 +119%
8.0.3 100.000 0.009593 +144%
8.0.2 100.000 0.010501 +158%
8.0.0 100.000 0.007841 +118%
7.4.33 100.000 0.008094 +122%
7.4.32 100.000 0.006646 100%
7.4.30 100.000 0.007077 +106%
7.4.28 100.000 0.008937 +134%
7.4.27 100.000 0.007682 +116%
7.4.24 100.000 0.007514 +113%
7.4.23 100.000 0.007288 +110%
7.4.22 100.000 0.007998 +120%
8.0.11 10.000 0.000953 +150%
8.0.10 10.000 0.000926 +146%
8.0.0 10.000 0.000865 +136%
7.4.29 100.000 0.007132 +107%
7.4.21 10.000 0.000997 +157%
7.4.21 100.000 0.007487 +113%
7.4.20 10.000 0.000908 +143%
7.4.20 100.000 0.007877 +119%
7.4.16 100.000 0.009180 +138%
7.4.15 100.000 0.011339 +171%
7.4.33 10.000 0.000819 +129%
7.4.32 10.000 0.000644 +101%
7.4.30 10.000 0.000636 100%
7.4.29 10.000 0.000819 +129%
7.4.24 10.000 0.000935 +147%
7.4.23 10.000 0.000874 +137%
7.4.22 10.000 0.000824 +130%
7.4.13 100.000 0.007472 +112%
7.4.12 100.000 0.007839 +118%
7.4.11 100.000 0.008055 +121%
7.4.10 100.000 0.007934 +119%
8.0.2 10.000 0.001444 +227%
7.4.0 100.000 0.008298 +125%
8.0.30 10.000 0.001039 +163%
8.0.29 10.000 0.000704 +111%
8.0.28 10.000 0.000743 +117%
8.0.27 10.000 0.000769 +121%
8.0.26 10.000 0.000824 +130%
8.0.25 10.000 0.000809 +127%
8.0.24 10.000 0.000651 +102%
8.0.23 10.000 0.000767 +121%
8.0.9 10.000 0.000733 +115%
8.0.8 10.000 0.001094 +172%
8.0.7 10.000 0.000946 +149%
8.0.3 10.000 0.001203 +189%
7.4.28 10.000 0.000910 +143%
7.4.27 10.000 0.001031 +162%
7.4.16 10.000 0.001097 +173%
7.4.15 10.000 0.001209 +190%
7.4.13 10.000 0.000731 +115%
7.4.12 10.000 0.000758 +119%
7.4.11 10.000 0.000809 +127%
7.4.10 10.000 0.000890 +140%
7.4.7 10.000 0.000982 +155%
7.4.7 100.000 0.007775 +117%
7.4.6 10.000 0.000902 +142%
7.4.6 100.000 0.007215 +109%
7.4.5 10.000 0.000888 +140%
7.4.5 100.000 0.008060 +121%
7.4.4 10.000 0.000757 +119%
7.4.4 100.000 0.008191 +123%
7.4.3 10.000 0.000810 +127%
7.4.3 100.000 0.007124 +107%
7.4.1 100.000 0.008006 +120%
7.4.2 10.000 0.001119 +176%
7.4.2 100.000 0.007221 +109%
7.4.1 10.000 0.000970 +153%
7.4.0 10.000 0.000718 +113%
7.3.33 10.000 0.000764 +120%
7.3.31 10.000 0.000896 +141%
7.3.30 10.000 0.000884 +139%
7.3.29 10.000 0.000912 +144%
7.3.28 10.000 0.000884 +139%
7.3.27 10.000 0.001176 +185%
7.3.24 10.000 0.000832 +131%
7.3.23 10.000 0.000926 +146%
7.3.22 10.000 0.000874 +138%
7.3.19 10.000 0.000917 +144%
7.3.18 10.000 0.000966 +152%
7.3.17 10.000 0.000894 +141%
7.3.16 10.000 0.000719 +113%
7.3.15 10.000 0.000885 +139%
7.3.14 10.000 0.001052 +166%
7.3.13 10.000 0.001047 +165%
7.3.12 10.000 0.000865 +136%
7.3.11 10.000 0.000727 +114%
7.3.9 10.000 0.000709 +111%
7.3.8 10.000 0.000729 +115%
7.2.34 10.000 0.000963 +151%
7.2.33 10.000 0.000902 +142%
7.2.31 10.000 0.001042 +164%
7.2.30 10.000 0.001185 +186%
7.2.29 10.000 0.001005 +158%
7.2.28 10.000 0.001039 +163%
7.2.27 10.000 0.001116 +175%
7.2.26 10.000 0.000946 +149%
7.2.25 10.000 0.000783 +123%
7.2.24 10.000 0.000806 +127%
7.2.22 10.000 0.000846 +133%
7.2.21 10.000 0.000745 +117%
7.1.33 10.000 0.000986 +155%
7.1.32 10.000 0.000832 +131%
7.1.31 10.000 0.000813 +128%
7.1.0 10.000 0.003557 +560%
7.0.33 10.000 0.000964 +152%
7.0.7 10.000 0.003355 +528%
5.6.40 10.000 0.006650 +1046%
5.6.22 10.000 0.022111 +3478%
5.5.36 10.000 0.022256 +3501%
5.4.45 10.000 0.020939 +3294%
5.3.29 10.000 0.024044 +3782%