Create loop with foreach (key and value)
<?php
$values = $this->getRange($loop);
$this->start($loop);
foreach ($values as $key => $value) {
$value++;
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.4.4 | 100.000 | 0.001590 | 100% |
8.3.9 | 100.000 | 0.002280 | 100% |
7.4.1 | 100.000 | 0.001762 | 100% |
7.4.0 | 100.000 | 0.001897 | 100% |
7.3.33 | 100.000 | 0.002020 | 100% |
7.3.31 | 100.000 | 0.001763 | 100% |
7.3.30 | 100.000 | 0.001780 | 100% |
7.3.29 | 100.000 | 0.001752 | 100% |
7.3.28 | 100.000 | 0.001769 | 100% |
7.3.27 | 100.000 | 0.002274 | 100% |
7.3.24 | 100.000 | 0.001801 | 100% |
7.3.23 | 100.000 | 0.001948 | 100% |
7.3.22 | 100.000 | 0.001772 | 100% |
7.3.19 | 100.000 | 0.001795 | 100% |
7.3.18 | 100.000 | 0.001755 | 100% |
7.3.17 | 100.000 | 0.001908 | 100% |
7.3.16 | 100.000 | 0.001715 | 100% |
7.3.15 | 100.000 | 0.001685 | 100% |
7.3.14 | 100.000 | 0.001907 | 100% |
7.3.13 | 100.000 | 0.001809 | 100% |
7.3.12 | 100.000 | 0.001663 | 100% |
7.3.11 | 100.000 | 0.001905 | 100% |
7.3.9 | 100.000 | 0.002115 | 100% |
7.3.8 | 100.000 | 0.002160 | 100% |
7.2.34 | 100.000 | 0.001924 | 100% |
7.2.33 | 100.000 | 0.001948 | 100% |
7.2.31 | 100.000 | 0.001921 | 100% |
7.2.30 | 100.000 | 0.001919 | 100% |
7.2.29 | 100.000 | 0.001781 | 100% |
7.2.28 | 100.000 | 0.001861 | 100% |
7.2.27 | 100.000 | 0.001908 | 100% |
7.2.26 | 100.000 | 0.001816 | 100% |
7.2.25 | 100.000 | 0.001643 | 100% |
7.2.24 | 100.000 | 0.001818 | 100% |
7.2.22 | 100.000 | 0.002078 | 100% |
7.2.21 | 100.000 | 0.002246 | 100% |
7.1.33 | 100.000 | 0.002514 | 100% |
7.1.32 | 100.000 | 0.002630 | 100% |
7.1.31 | 100.000 | 0.002612 | 100% |
7.1.0 | 100.000 | 0.013282 | +149% |
7.0.33 | 100.000 | 0.002057 | 100% |
7.0.7 | 100.000 | 0.014005 | +132% |
5.6.40 | 100.000 | 0.007136 | 100% |
5.6.22 | 100.000 | 0.048110 | +185% |
5.5.36 | 100.000 | 0.050040 | +2933% |
5.4.45 | 100.000 | 0.050025 | +536% |
5.3.29 | 100.000 | 0.047971 | +439% |
8.4.4 | 10.000 | 0.000285 | 100% |
8.3.16 | 100.000 | 0.001544 | 100% |
8.3.13 | 100.000 | 0.002321 | 100% |
8.3.10 | 10.000 | 0.000465 | 100% |
8.3.10 | 100.000 | 0.002210 | 100% |
8.0.29 | 100.000 | 0.001623 | 100% |
8.0.28 | 100.000 | 0.001468 | 100% |
8.0.27 | 100.000 | 0.001457 | 100% |
8.0.26 | 100.000 | 0.001578 | 100% |
8.0.25 | 100.000 | 0.001592 | +105% |
8.0.24 | 100.000 | 0.001590 | 100% |
8.0.23 | 100.000 | 0.001448 | 100% |
8.0.20 | 100.000 | 0.001434 | 100% |
8.3.16 | 10.000 | 0.000263 | 100% |
8.3.13 | 10.000 | 0.000436 | 100% |
8.0.19 | 100.000 | 0.001597 | 100% |
8.0.17 | 100.000 | 0.001636 | 100% |
8.0.16 | 100.000 | 0.001524 | 100% |
8.0.14 | 100.000 | 0.001608 | +115% |
8.0.11 | 100.000 | 0.001538 | 100% |
8.0.9 | 100.000 | 0.001562 | +118% |
8.0.8 | 100.000 | 0.002310 | +325% |
7.4.10 | 100.000 | 0.001646 | 100% |
8.3.9 | 10.000 | 0.000461 | 100% |
8.0.30 | 100.000 | 0.002219 | +239% |
7.4.11 | 100.000 | 0.001722 | +190% |
8.0.30 | 10.000 | 0.000365 | 100% |
8.0.29 | 10.000 | 0.000186 | 100% |
8.0.28 | 10.000 | 0.000200 | 100% |
8.0.27 | 10.000 | 0.000246 | 100% |
8.0.26 | 10.000 | 0.000192 | 100% |
8.0.25 | 10.000 | 0.000268 | 100% |
8.0.24 | 10.000 | 0.000243 | 100% |
8.0.23 | 10.000 | 0.000205 | 100% |
8.0.20 | 10.000 | 0.000184 | 100% |
8.0.19 | 10.000 | 0.000277 | 100% |
8.0.17 | 10.000 | 0.000272 | 100% |
8.0.16 | 10.000 | 0.000254 | 100% |
8.0.14 | 10.000 | 0.000287 | 100% |
8.0.11 | 10.000 | 0.000284 | 100% |
8.0.7 | 100.000 | 0.001628 | 100% |
8.0.10 | 10.000 | 0.000285 | 100% |
8.0.10 | 100.000 | 0.001539 | +130% |
8.0.3 | 100.000 | 0.002010 | +134% |
8.0.2 | 100.000 | 0.002334 | +136% |
8.0.0 | 100.000 | 0.001623 | +130% |
7.4.29 | 100.000 | 0.001542 | 100% |
8.0.0 | 10.000 | 0.000254 | 100% |
7.4.33 | 100.000 | 0.001999 | 100% |
7.4.32 | 100.000 | 0.001559 | 100% |
8.0.2 | 10.000 | 0.000466 | 100% |
7.4.33 | 10.000 | 0.000329 | 100% |
7.4.30 | 10.000 | 0.000230 | 100% |
7.4.30 | 100.000 | 0.001435 | 100% |
7.4.29 | 10.000 | 0.000312 | 100% |
7.4.28 | 10.000 | 0.000283 | 100% |
7.4.28 | 100.000 | 0.001629 | 100% |
7.4.27 | 100.000 | 0.001710 | 100% |
7.4.24 | 10.000 | 0.000296 | 100% |
7.4.24 | 100.000 | 0.001957 | 100% |
7.4.23 | 100.000 | 0.001552 | 100% |
7.4.22 | 10.000 | 0.000302 | 100% |
7.4.22 | 100.000 | 0.001496 | +119% |
7.4.21 | 100.000 | 0.001577 | +135% |
8.0.9 | 10.000 | 0.000230 | 100% |
7.4.27 | 10.000 | 0.000296 | 100% |
7.4.21 | 10.000 | 0.000376 | 100% |
7.4.20 | 10.000 | 0.000321 | 100% |
7.4.20 | 100.000 | 0.001673 | +149% |
7.4.16 | 100.000 | 0.002092 | +171% |
8.0.8 | 10.000 | 0.000290 | 100% |
8.0.7 | 10.000 | 0.000328 | 100% |
8.0.3 | 10.000 | 0.000378 | 100% |
7.4.32 | 10.000 | 0.000268 | 100% |
7.4.23 | 10.000 | 0.000274 | 100% |
7.4.16 | 10.000 | 0.000370 | 100% |
7.4.15 | 10.000 | 0.000335 | 100% |
7.4.15 | 100.000 | 0.002549 | 100% |
7.4.13 | 100.000 | 0.001689 | 100% |
7.4.13 | 10.000 | 0.000269 | 100% |
7.4.12 | 100.000 | 0.001810 | 100% |
7.4.6 | 100.000 | 0.001555 | +128% |
7.4.12 | 10.000 | 0.000208 | 100% |
7.4.11 | 10.000 | 0.000266 | 100% |
7.4.10 | 10.000 | 0.000248 | 100% |
7.4.7 | 10.000 | 0.000282 | 100% |
7.4.7 | 100.000 | 0.001718 | +152% |
7.4.6 | 10.000 | 0.000324 | 100% |
7.4.5 | 10.000 | 0.000304 | 100% |
7.4.5 | 100.000 | 0.001642 | 100% |
7.4.4 | 10.000 | 0.000286 | 100% |
7.4.4 | 100.000 | 0.001662 | +167% |
7.4.3 | 100.000 | 0.001541 | +126% |
7.4.3 | 10.000 | 0.000266 | 100% |
7.4.2 | 10.000 | 0.000343 | 100% |
7.4.2 | 100.000 | 0.001746 | +154% |
7.4.1 | 10.000 | 0.000366 | 100% |
7.4.0 | 10.000 | 0.000242 | 100% |
7.3.33 | 10.000 | 0.000322 | 100% |
7.3.31 | 10.000 | 0.000332 | 100% |
7.3.30 | 10.000 | 0.000321 | 100% |
7.3.29 | 10.000 | 0.000312 | 100% |
7.3.28 | 10.000 | 0.000374 | 100% |
7.3.27 | 10.000 | 0.000370 | 100% |
7.3.24 | 10.000 | 0.000273 | 100% |
7.3.23 | 10.000 | 0.000301 | 100% |
7.3.22 | 10.000 | 0.000254 | 100% |
7.3.19 | 10.000 | 0.000312 | 100% |
7.3.18 | 10.000 | 0.000336 | 100% |
7.3.17 | 10.000 | 0.000327 | 100% |
7.3.16 | 10.000 | 0.000308 | 100% |
7.3.15 | 10.000 | 0.000308 | 100% |
7.3.14 | 10.000 | 0.000394 | 100% |
7.3.13 | 10.000 | 0.000407 | 100% |
7.3.12 | 10.000 | 0.000296 | 100% |
7.3.11 | 10.000 | 0.000268 | 100% |
7.3.9 | 10.000 | 0.000257 | 100% |
7.3.8 | 10.000 | 0.000233 | 100% |
7.2.34 | 10.000 | 0.000319 | 100% |
7.2.33 | 10.000 | 0.000303 | 100% |
7.2.31 | 10.000 | 0.000329 | 100% |
7.2.30 | 10.000 | 0.000256 | 100% |
7.2.29 | 10.000 | 0.000269 | 100% |
7.2.28 | 10.000 | 0.000345 | 100% |
7.2.27 | 10.000 | 0.000369 | 100% |
7.2.26 | 10.000 | 0.000353 | 100% |
7.2.25 | 10.000 | 0.000325 | 100% |
7.2.24 | 10.000 | 0.000246 | 100% |
7.2.22 | 10.000 | 0.000246 | 100% |
7.2.21 | 10.000 | 0.000248 | +134% |
7.1.33 | 10.000 | 0.000422 | +229% |
7.1.32 | 10.000 | 0.000302 | +164% |
7.1.31 | 10.000 | 0.000289 | +157% |
7.1.0 | 10.000 | 0.001441 | +781% |
7.0.33 | 10.000 | 0.000349 | +189% |
7.0.7 | 10.000 | 0.001472 | +798% |
5.6.40 | 10.000 | 0.001214 | +658% |
5.6.22 | 10.000 | 0.005950 | +3226% |
5.5.36 | 10.000 | 0.005964 | +3234% |
5.4.45 | 10.000 | 0.005737 | +3111% |
5.3.29 | 10.000 | 0.005682 | +3081% |
Create loop with while
<?php
$values = $this->getRange($loop);
$this->start($loop);
while (($key = key($values)) !== null) {
$values[$key]++;
next($values);
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.4.4 | 100.000 | 0.009816 | +617% |
8.3.9 | 100.000 | 0.010110 | +443% |
7.4.12 | 100.000 | 0.006660 | +378% |
7.4.11 | 100.000 | 0.007105 | +375% |
7.4.10 | 100.000 | 0.007616 | +377% |
7.4.1 | 100.000 | 0.006434 | +365% |
7.4.0 | 100.000 | 0.007496 | +421% |
7.3.33 | 100.000 | 0.007766 | +443% |
7.3.31 | 100.000 | 0.006418 | +363% |
7.3.30 | 100.000 | 0.006452 | +284% |
7.3.29 | 100.000 | 0.006377 | +354% |
7.3.28 | 100.000 | 0.006715 | +345% |
7.3.27 | 100.000 | 0.008564 | +483% |
7.3.24 | 100.000 | 0.006625 | +369% |
7.3.23 | 100.000 | 0.007124 | +406% |
7.3.22 | 100.000 | 0.006553 | +343% |
7.3.19 | 100.000 | 0.006930 | +404% |
7.3.18 | 100.000 | 0.006792 | +403% |
7.3.17 | 100.000 | 0.006262 | +328% |
7.3.16 | 100.000 | 0.006641 | +367% |
7.3.15 | 100.000 | 0.006071 | +365% |
7.3.14 | 100.000 | 0.006752 | +354% |
7.3.13 | 100.000 | 0.006995 | +331% |
7.3.12 | 100.000 | 0.006328 | +293% |
7.3.11 | 100.000 | 0.006923 | +360% |
7.3.9 | 100.000 | 0.008262 | +424% |
7.3.8 | 100.000 | 0.008641 | +450% |
7.2.34 | 100.000 | 0.007913 | +412% |
7.2.33 | 100.000 | 0.007088 | +398% |
7.2.31 | 100.000 | 0.006947 | +373% |
7.2.30 | 100.000 | 0.007606 | +399% |
7.2.29 | 100.000 | 0.006807 | +375% |
7.2.28 | 100.000 | 0.005961 | +363% |
7.2.27 | 100.000 | 0.007081 | +390% |
7.2.26 | 100.000 | 0.007236 | +348% |
7.2.25 | 100.000 | 0.005979 | +266% |
7.2.24 | 100.000 | 0.007260 | +289% |
7.2.22 | 100.000 | 0.008667 | +330% |
7.2.21 | 100.000 | 0.008900 | +341% |
7.1.33 | 100.000 | 0.008891 | 100% |
7.1.32 | 100.000 | 0.010150 | +493% |
7.1.31 | 100.000 | 0.010595 | 100% |
7.0.33 | 100.000 | 0.008818 | +124% |
5.6.40 | 100.000 | 0.025975 | 100% |
8.4.4 | 10.000 | 0.001706 | 100% |
8.3.16 | 100.000 | 0.009330 | 100% |
8.3.13 | 100.000 | 0.010939 | 100% |
8.3.10 | 10.000 | 0.001756 | +616% |
8.3.10 | 100.000 | 0.010113 | +655% |
8.0.28 | 100.000 | 0.006023 | +259% |
8.0.27 | 100.000 | 0.006321 | +1359% |
8.0.26 | 100.000 | 0.006394 | +289% |
8.0.25 | 100.000 | 0.006237 | +384% |
8.0.24 | 100.000 | 0.005824 | +397% |
8.0.23 | 100.000 | 0.006096 | +418% |
8.0.20 | 100.000 | 0.005965 | +378% |
8.3.16 | 10.000 | 0.001517 | 100% |
8.3.13 | 10.000 | 0.001763 | +111% |
8.0.19 | 100.000 | 0.006524 | +451% |
8.0.17 | 100.000 | 0.006045 | +422% |
8.0.16 | 100.000 | 0.005915 | +2247% |
8.0.9 | 100.000 | 0.007057 | +1617% |
8.0.8 | 100.000 | 0.007006 | +439% |
8.0.7 | 100.000 | 0.006235 | +381% |
7.4.13 | 100.000 | 0.006734 | +442% |
8.3.9 | 10.000 | 0.001394 | 100% |
8.0.30 | 100.000 | 0.008273 | +538% |
8.0.30 | 10.000 | 0.001320 | 100% |
8.0.29 | 10.000 | 0.000710 | 100% |
8.0.29 | 100.000 | 0.006215 | +378% |
8.0.28 | 10.000 | 0.000791 | +172% |
8.0.27 | 10.000 | 0.000930 | 100% |
8.0.26 | 10.000 | 0.000906 | 100% |
8.0.25 | 10.000 | 0.000919 | +252% |
8.0.24 | 10.000 | 0.000792 | +426% |
8.0.23 | 10.000 | 0.001143 | +572% |
8.0.20 | 10.000 | 0.000785 | +320% |
8.0.19 | 10.000 | 0.001074 | +560% |
8.0.17 | 10.000 | 0.001191 | +445% |
8.0.16 | 10.000 | 0.001086 | +446% |
7.4.15 | 100.000 | 0.009114 | +4453% |
8.0.14 | 10.000 | 0.001117 | +606% |
8.0.14 | 100.000 | 0.007274 | +2623% |
8.0.11 | 100.000 | 0.005877 | +2159% |
8.0.10 | 100.000 | 0.005793 | +2277% |
8.0.3 | 100.000 | 0.007933 | +2765% |
8.0.8 | 10.000 | 0.001073 | +378% |
8.0.2 | 100.000 | 0.009709 | +596% |
8.0.0 | 100.000 | 0.006247 | +2193% |
8.0.7 | 10.000 | 0.001184 | 100% |
8.0.3 | 10.000 | 0.001498 | 100% |
8.0.2 | 10.000 | 0.001714 | 100% |
7.4.33 | 10.000 | 0.001252 | 100% |
7.4.33 | 100.000 | 0.007975 | +517% |
8.0.9 | 10.000 | 0.000929 | +365% |
7.4.24 | 100.000 | 0.006438 | +322% |
7.4.21 | 100.000 | 0.006627 | +425% |
8.0.11 | 10.000 | 0.001155 | +248% |
8.0.10 | 10.000 | 0.001304 | +397% |
8.0.0 | 10.000 | 0.001129 | +491% |
7.4.23 | 100.000 | 0.006543 | +456% |
7.4.22 | 100.000 | 0.006203 | +1988% |
7.4.32 | 10.000 | 0.000967 | +341% |
7.4.32 | 100.000 | 0.006087 | +374% |
7.4.30 | 100.000 | 0.005779 | +338% |
7.4.29 | 100.000 | 0.006402 | +2165% |
7.4.28 | 100.000 | 0.007011 | +358% |
7.4.27 | 100.000 | 0.006576 | +424% |
7.4.30 | 10.000 | 0.000856 | +283% |
7.4.29 | 10.000 | 0.001261 | 100% |
7.4.28 | 10.000 | 0.001170 | 100% |
7.4.27 | 10.000 | 0.001305 | +567% |
7.4.24 | 10.000 | 0.001073 | +363% |
7.4.23 | 10.000 | 0.001146 | +305% |
7.4.22 | 10.000 | 0.001030 | +321% |
7.4.21 | 10.000 | 0.001124 | 100% |
7.4.20 | 10.000 | 0.001225 | 100% |
7.4.20 | 100.000 | 0.006044 | +2087% |
7.4.5 | 100.000 | 0.006287 | +1916% |
7.4.16 | 10.000 | 0.001434 | +379% |
7.4.16 | 100.000 | 0.008701 | +3250% |
7.4.15 | 10.000 | 0.001782 | +651% |
7.4.13 | 10.000 | 0.001065 | +288% |
7.4.10 | 10.000 | 0.001123 | +335% |
7.4.7 | 100.000 | 0.006723 | +264% |
7.4.6 | 100.000 | 0.006103 | +361% |
7.4.4 | 10.000 | 0.001116 | +415% |
7.4.4 | 100.000 | 0.005967 | +330% |
7.4.11 | 10.000 | 0.001218 | 100% |
7.4.3 | 100.000 | 0.005780 | +2784% |
7.4.12 | 10.000 | 0.001106 | +416% |
7.4.7 | 10.000 | 0.001280 | +517% |
7.4.6 | 10.000 | 0.001176 | +418% |
7.4.5 | 10.000 | 0.001133 | 100% |
7.4.3 | 10.000 | 0.001061 | +328% |
7.4.2 | 10.000 | 0.001325 | +436% |
7.4.2 | 100.000 | 0.006566 | +400% |
7.4.1 | 10.000 | 0.001370 | +478% |
7.4.0 | 10.000 | 0.000992 | 100% |
7.3.33 | 10.000 | 0.001225 | 100% |
7.3.31 | 10.000 | 0.001144 | +430% |
7.3.30 | 10.000 | 0.001185 | +346% |
7.3.29 | 10.000 | 0.001134 | 100% |
7.3.28 | 10.000 | 0.001388 | +379% |
7.3.27 | 10.000 | 0.001536 | +635% |
7.3.24 | 10.000 | 0.001079 | +336% |
7.3.23 | 10.000 | 0.001173 | +353% |
7.3.22 | 10.000 | 0.001081 | +337% |
7.3.19 | 10.000 | 0.001288 | +412% |
7.3.18 | 10.000 | 0.001203 | +322% |
7.3.17 | 10.000 | 0.000907 | +245% |
7.3.16 | 10.000 | 0.001060 | +389% |
7.3.15 | 10.000 | 0.001278 | +425% |
7.3.14 | 10.000 | 0.001407 | +553% |
7.3.13 | 10.000 | 0.001429 | +458% |
7.3.12 | 10.000 | 0.001218 | +363% |
7.3.11 | 10.000 | 0.000972 | +297% |
7.3.9 | 10.000 | 0.000946 | +307% |
7.3.8 | 10.000 | 0.000964 | +313% |
7.2.34 | 10.000 | 0.001241 | +315% |
7.2.33 | 10.000 | 0.001261 | +310% |
7.2.31 | 10.000 | 0.001238 | +419% |
7.2.30 | 10.000 | 0.001506 | +562% |
7.2.29 | 10.000 | 0.001165 | +453% |
7.2.28 | 10.000 | 0.001124 | +482% |
7.2.27 | 10.000 | 0.001521 | +476% |
7.2.26 | 10.000 | 0.001425 | +470% |
7.2.25 | 10.000 | 0.001356 | +412% |
7.2.24 | 10.000 | 0.001056 | +412% |
7.2.22 | 10.000 | 0.001064 | +395% |
7.2.21 | 10.000 | 0.000995 | +289% |
7.1.33 | 10.000 | 0.001478 | +401% |
7.1.32 | 10.000 | 0.001140 | +323% |
7.1.31 | 10.000 | 0.001181 | +363% |
7.0.33 | 10.000 | 0.001423 | +577% |
5.6.40 | 10.000 | 0.003770 | +1535% |