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.3.10 | 100.000 | 0.002280 | 100% |
8.3.9 | 100.000 | 0.002280 | 100% |
7.3.33 | 100.000 | 0.001907 | 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.30 | 100.000 | 0.001919 | 100% |
8.3.10 | 10.000 | 0.000486 | 100% |
7.2.34 | 100.000 | 0.001880 | 100% |
7.2.33 | 100.000 | 0.001948 | 100% |
7.2.31 | 100.000 | 0.001921 | 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.002427 | 100% |
7.1.32 | 100.000 | 0.002630 | 100% |
7.1.31 | 100.000 | 0.002612 | 100% |
7.1.0 | 100.000 | 0.013282 | +131% |
7.0.33 | 100.000 | 0.001998 | 100% |
7.0.7 | 100.000 | 0.014005 | +164% |
5.6.40 | 100.000 | 0.006942 | +381% |
5.6.22 | 100.000 | 0.048110 | +189% |
5.5.36 | 100.000 | 0.050040 | +3589% |
5.4.45 | 100.000 | 0.050025 | +3982% |
5.3.29 | 100.000 | 0.047971 | +608% |
8.3.9 | 10.000 | 0.000461 | 100% |
8.0.30 | 100.000 | 0.002097 | 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 | 100% |
8.0.24 | 100.000 | 0.001590 | 100% |
8.0.23 | 100.000 | 0.001448 | 100% |
8.0.20 | 10.000 | 0.000184 | 100% |
8.0.20 | 100.000 | 0.001434 | 100% |
8.0.19 | 10.000 | 0.000277 | 100% |
8.0.19 | 100.000 | 0.001597 | 100% |
8.0.17 | 10.000 | 0.000272 | 100% |
8.0.17 | 100.000 | 0.001636 | 100% |
8.0.16 | 10.000 | 0.000254 | 100% |
8.0.16 | 100.000 | 0.001524 | 100% |
8.0.14 | 10.000 | 0.000287 | 100% |
8.0.14 | 100.000 | 0.001608 | 100% |
8.0.11 | 100.000 | 0.001538 | +165% |
8.0.10 | 100.000 | 0.001539 | +170% |
8.0.9 | 100.000 | 0.001562 | +170% |
8.0.8 | 100.000 | 0.002310 | +292% |
8.0.7 | 100.000 | 0.001628 | +142% |
8.0.3 | 100.000 | 0.002010 | +187% |
8.0.2 | 100.000 | 0.002334 | +196% |
8.0.0 | 100.000 | 0.001623 | +150% |
7.4.33 | 100.000 | 0.001875 | +168% |
7.4.32 | 100.000 | 0.001559 | +135% |
7.4.30 | 100.000 | 0.001435 | +110% |
7.4.28 | 100.000 | 0.001629 | +175% |
7.4.27 | 100.000 | 0.001710 | 100% |
7.4.24 | 100.000 | 0.001957 | +249% |
7.4.23 | 100.000 | 0.001552 | +145% |
7.4.22 | 100.000 | 0.001496 | 100% |
8.0.11 | 10.000 | 0.000284 | 100% |
8.0.10 | 10.000 | 0.000285 | 100% |
8.0.0 | 10.000 | 0.000254 | 100% |
7.4.29 | 100.000 | 0.001542 | 100% |
7.4.21 | 10.000 | 0.000376 | 100% |
7.4.21 | 100.000 | 0.001577 | +140% |
7.4.20 | 10.000 | 0.000321 | 100% |
7.4.20 | 100.000 | 0.001673 | 100% |
7.4.16 | 100.000 | 0.002092 | +186% |
7.4.15 | 100.000 | 0.002549 | 100% |
7.4.33 | 10.000 | 0.000297 | 100% |
7.4.32 | 10.000 | 0.000268 | 100% |
7.4.30 | 10.000 | 0.000230 | 100% |
7.4.29 | 10.000 | 0.000312 | 100% |
7.4.24 | 10.000 | 0.000296 | 100% |
7.4.23 | 10.000 | 0.000274 | 100% |
7.4.22 | 10.000 | 0.000302 | 100% |
7.4.13 | 100.000 | 0.001689 | 100% |
7.4.12 | 100.000 | 0.001810 | 100% |
7.4.11 | 100.000 | 0.001722 | 100% |
7.4.10 | 100.000 | 0.001646 | +153% |
8.0.2 | 10.000 | 0.000466 | 100% |
7.4.0 | 100.000 | 0.001897 | +184% |
8.0.30 | 10.000 | 0.000341 | 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.9 | 10.000 | 0.000230 | 100% |
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.28 | 10.000 | 0.000283 | 100% |
7.4.27 | 10.000 | 0.000296 | 100% |
7.4.16 | 10.000 | 0.000370 | 100% |
7.4.15 | 10.000 | 0.000335 | 100% |
7.4.13 | 10.000 | 0.000269 | 100% |
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 | +154% |
7.4.6 | 10.000 | 0.000324 | 100% |
7.4.6 | 100.000 | 0.001555 | +147% |
7.4.5 | 10.000 | 0.000304 | 100% |
7.4.5 | 100.000 | 0.001642 | +124% |
7.4.4 | 10.000 | 0.000286 | 100% |
7.4.4 | 100.000 | 0.001662 | +121% |
7.4.3 | 10.000 | 0.000266 | 100% |
7.4.3 | 100.000 | 0.001541 | +134% |
7.4.1 | 100.000 | 0.001762 | +154% |
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.000310 | 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.000307 | 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.000408 | +221% |
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.000340 | +185% |
7.0.7 | 10.000 | 0.001472 | +798% |
5.6.40 | 10.000 | 0.001223 | +663% |
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.3.10 | 100.000 | 0.010197 | +447% |
8.3.9 | 100.000 | 0.010110 | +443% |
7.4.10 | 100.000 | 0.007616 | +399% |
7.4.1 | 100.000 | 0.006434 | +365% |
7.4.0 | 100.000 | 0.007496 | +421% |
7.3.33 | 100.000 | 0.007345 | +419% |
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 | +361% |
7.3.9 | 100.000 | 0.008262 | +1701% |
7.3.8 | 100.000 | 0.008641 | +460% |
7.2.34 | 100.000 | 0.007665 | +394% |
7.2.33 | 100.000 | 0.007088 | +369% |
7.2.31 | 100.000 | 0.006947 | +390% |
7.2.30 | 100.000 | 0.007606 | +409% |
7.2.29 | 100.000 | 0.006807 | +357% |
7.2.28 | 100.000 | 0.005961 | +328% |
7.2.27 | 100.000 | 0.007081 | +431% |
7.2.26 | 100.000 | 0.007236 | +398% |
7.2.25 | 100.000 | 0.005979 | +288% |
7.2.24 | 100.000 | 0.007260 | +323% |
7.2.22 | 100.000 | 0.008667 | +357% |
7.2.21 | 100.000 | 0.008900 | +338% |
7.1.33 | 100.000 | 0.008660 | +331% |
7.1.32 | 100.000 | 0.010150 | 100% |
7.1.31 | 100.000 | 0.010595 | +530% |
7.0.33 | 100.000 | 0.008560 | 100% |
8.3.10 | 10.000 | 0.001823 | 100% |
5.6.40 | 100.000 | 0.025427 | 100% |
8.3.9 | 10.000 | 0.001394 | 100% |
8.0.30 | 10.000 | 0.001256 | 100% |
8.0.30 | 100.000 | 0.007893 | 100% |
8.0.29 | 100.000 | 0.006215 | +1347% |
8.0.28 | 100.000 | 0.006023 | +287% |
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.0.19 | 100.000 | 0.006524 | +410% |
8.0.17 | 100.000 | 0.006045 | +380% |
8.0.16 | 100.000 | 0.005915 | +409% |
8.0.14 | 100.000 | 0.007274 | +3944% |
8.0.11 | 100.000 | 0.005877 | +410% |
8.0.10 | 100.000 | 0.005793 | +2089% |
8.0.9 | 100.000 | 0.007057 | +442% |
8.0.3 | 100.000 | 0.007933 | +2915% |
7.4.11 | 100.000 | 0.007105 | +434% |
8.0.29 | 10.000 | 0.000710 | +279% |
8.0.27 | 100.000 | 0.006321 | +415% |
8.0.28 | 10.000 | 0.000791 | +276% |
8.0.26 | 100.000 | 0.006394 | +398% |
8.0.27 | 10.000 | 0.000930 | 100% |
8.0.26 | 10.000 | 0.000906 | 100% |
8.0.25 | 10.000 | 0.000919 | 100% |
8.0.24 | 10.000 | 0.000792 | 100% |
8.0.23 | 10.000 | 0.001143 | 100% |
8.0.19 | 10.000 | 0.001074 | 100% |
8.0.17 | 10.000 | 0.001191 | 100% |
8.0.16 | 10.000 | 0.001086 | 100% |
8.0.14 | 10.000 | 0.001117 | 100% |
8.0.11 | 10.000 | 0.001155 | 100% |
8.0.10 | 10.000 | 0.001304 | 100% |
8.0.9 | 10.000 | 0.000929 | 100% |
8.0.7 | 100.000 | 0.006235 | +365% |
8.0.20 | 10.000 | 0.000785 | 100% |
8.0.8 | 10.000 | 0.001073 | 100% |
8.0.8 | 100.000 | 0.007006 | +468% |
8.0.2 | 100.000 | 0.009709 | +3421% |
8.0.7 | 10.000 | 0.001184 | +416% |
8.0.3 | 10.000 | 0.001498 | +589% |
8.0.2 | 10.000 | 0.001714 | +111% |
7.4.12 | 100.000 | 0.006660 | +1773% |
8.0.0 | 10.000 | 0.001129 | 100% |
8.0.0 | 100.000 | 0.006247 | +1949% |
7.4.33 | 100.000 | 0.007286 | +435% |
7.4.33 | 10.000 | 0.001123 | 100% |
7.4.32 | 100.000 | 0.006087 | +239% |
7.4.30 | 100.000 | 0.005779 | +1943% |
7.4.29 | 100.000 | 0.006402 | +2391% |
7.4.32 | 10.000 | 0.000967 | +420% |
7.4.30 | 10.000 | 0.000856 | +274% |
7.4.28 | 100.000 | 0.007011 | +2371% |
7.4.27 | 10.000 | 0.001305 | +477% |
7.4.27 | 100.000 | 0.006576 | +2174% |
7.4.24 | 100.000 | 0.006438 | +381% |
7.4.23 | 100.000 | 0.006543 | +361% |
7.4.22 | 100.000 | 0.006203 | +360% |
7.4.24 | 10.000 | 0.001073 | 100% |
7.4.23 | 10.000 | 0.001146 | +246% |
7.4.22 | 10.000 | 0.001030 | 100% |
7.4.21 | 10.000 | 0.001124 | +330% |
7.4.21 | 100.000 | 0.006627 | +3562% |
7.4.16 | 100.000 | 0.008701 | +4358% |
7.4.15 | 100.000 | 0.009114 | +3708% |
7.4.13 | 100.000 | 0.006734 | +3513% |
7.4.20 | 10.000 | 0.001225 | +458% |
7.4.20 | 100.000 | 0.006044 | +2484% |
7.4.28 | 10.000 | 0.001170 | +572% |
7.4.16 | 10.000 | 0.001434 | +623% |
7.4.15 | 10.000 | 0.001782 | +615% |
7.4.13 | 10.000 | 0.001065 | +325% |
7.4.7 | 100.000 | 0.006723 | +1776% |
7.4.29 | 10.000 | 0.001261 | +445% |
7.4.12 | 10.000 | 0.001106 | +374% |
7.4.10 | 10.000 | 0.001123 | +303% |
7.4.5 | 100.000 | 0.006287 | +1877% |
7.4.11 | 10.000 | 0.001218 | +453% |
7.4.7 | 10.000 | 0.001280 | +616% |
7.4.6 | 10.000 | 0.001176 | +443% |
7.4.6 | 100.000 | 0.006103 | +2465% |
7.4.5 | 10.000 | 0.001133 | +402% |
7.4.4 | 10.000 | 0.001116 | 100% |
7.4.4 | 100.000 | 0.005967 | +1842% |
7.4.3 | 10.000 | 0.001061 | 100% |
7.4.3 | 100.000 | 0.005780 | +1903% |
7.4.2 | 10.000 | 0.001325 | 100% |
7.4.2 | 100.000 | 0.006566 | +2293% |
7.4.1 | 10.000 | 0.001370 | 100% |
7.4.0 | 10.000 | 0.000992 | +373% |
7.3.33 | 10.000 | 0.001148 | 100% |
7.3.31 | 10.000 | 0.001144 | 100% |
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 | +348% |
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.001199 | +304% |
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 | +495% |
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.001446 | +392% |
7.1.32 | 10.000 | 0.001140 | +323% |
7.1.31 | 10.000 | 0.001181 | +363% |
7.0.33 | 10.000 | 0.001387 | +563% |
5.6.40 | 10.000 | 0.003766 | +1533% |