3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = range(1, 10000); $c = 0; $start = microtime(true); $l = count($values); $i = 0; while ($i < $l) { $c++; $i++; } $end = microtime(true); printf('while $i++ %d iterations in: %f sec', $c, ($end - $start)); echo PHP_EOL; $values = range(1, 10000); $c = 0; $start = microtime(true); $l = count($values); for ($i = 0; $i < $l; $i++) { $c++; } $end = microtime(true); printf('for $i++ %d iterations in: %f sec', $c, ($end - $start)); echo PHP_EOL; $values = range(1, 10000); $c = 0; $start = microtime(true); foreach ($values as $val) { $c++; } $end = microtime(true); printf('foreach %d iterations in: %f sec', $c, ($end - $start)); echo PHP_EOL; $values = range(1, 10000); $c = 0; $start = microtime(true); $value = reset($values); while ($value) { $c++; $value = next($values); } $end = microtime(true); printf('while reset, next %d iterations in: %f sec', $c, ($end - $start)); echo PHP_EOL; $values = range(1, 10000); $c = 0; $start = microtime(true); while ($val = current($values)) { $c++; next($values); } $end = microtime(true); printf('while current, next %d iterations in: %f sec', $c, ($end - $start)); echo PHP_EOL; $values = range(1, 10000); $c = 0; $start = microtime(true); $value = current($values); do{ $c++; }while($value = next($values)); $end = microtime(true); printf('do while next %d iterations in %f sec', $c, ($end - $start)); echo PHP_EOL; $values = range(1, 10000); $c = 0; $start = microtime(true); while ($values) { $c++; array_shift($values); } $end = microtime(true); printf('while array_shift %d iterations in: %f sec', $c, ($end - $start)); echo PHP_EOL; $values = range(1, 10000); $c = 0; $start = microtime(true); $values = array_reverse($values); while ($values) { $c++; array_pop($values); } $end = microtime(true); printf('while array_pop %d iterations in: %f sec', $c, ($end - $start)); echo PHP_EOL;
Output for 7.3.1
while $i++ 10000 iterations in: 0.000657 sec for $i++ 10000 iterations in: 0.000633 sec foreach 10000 iterations in: 0.000323 sec while reset, next 10000 iterations in: 0.001000 sec while current, next 10000 iterations in: 0.000935 sec do while next 10000 iterations in 0.000491 sec while array_shift 10000 iterations in: 0.219991 sec while array_pop 10000 iterations in: 0.000566 sec
Output for 7.3.0
while $i++ 10000 iterations in: 0.000498 sec for $i++ 10000 iterations in: 0.000471 sec foreach 10000 iterations in: 0.000247 sec while reset, next 10000 iterations in: 0.000753 sec while current, next 10000 iterations in: 0.001403 sec do while next 10000 iterations in 0.000821 sec while array_shift 10000 iterations in: 0.216880 sec while array_pop 10000 iterations in: 0.000568 sec
Output for 7.2.13
while $i++ 10000 iterations in: 0.000348 sec for $i++ 10000 iterations in: 0.000369 sec foreach 10000 iterations in: 0.000210 sec while reset, next 10000 iterations in: 0.000612 sec while current, next 10000 iterations in: 0.000609 sec do while next 10000 iterations in 0.000380 sec while array_shift 10000 iterations in: 0.212919 sec while array_pop 10000 iterations in: 0.000596 sec
Output for 7.2.12
while $i++ 10000 iterations in: 0.000226 sec for $i++ 10000 iterations in: 0.000227 sec foreach 10000 iterations in: 0.000131 sec while reset, next 10000 iterations in: 0.000394 sec while current, next 10000 iterations in: 0.000733 sec do while next 10000 iterations in 0.000405 sec while array_shift 10000 iterations in: 0.213567 sec while array_pop 10000 iterations in: 0.000588 sec
Output for 7.2.11
while $i++ 10000 iterations in: 0.000280 sec for $i++ 10000 iterations in: 0.000297 sec foreach 10000 iterations in: 0.000163 sec while reset, next 10000 iterations in: 0.000464 sec while current, next 10000 iterations in: 0.000811 sec do while next 10000 iterations in 0.000577 sec while array_shift 10000 iterations in: 0.217513 sec while array_pop 10000 iterations in: 0.000589 sec
Output for 7.2.10
while $i++ 10000 iterations in: 0.000213 sec for $i++ 10000 iterations in: 0.000209 sec foreach 10000 iterations in: 0.000124 sec while reset, next 10000 iterations in: 0.000356 sec while current, next 10000 iterations in: 0.000824 sec do while next 10000 iterations in 0.000384 sec while array_shift 10000 iterations in: 0.214437 sec while array_pop 10000 iterations in: 0.000644 sec
Output for 7.2.9
while $i++ 10000 iterations in: 0.000315 sec for $i++ 10000 iterations in: 0.000327 sec foreach 10000 iterations in: 0.000217 sec while reset, next 10000 iterations in: 0.000551 sec while current, next 10000 iterations in: 0.000804 sec do while next 10000 iterations in 0.000489 sec while array_shift 10000 iterations in: 0.217058 sec while array_pop 10000 iterations in: 0.000954 sec
Output for 7.2.8
while $i++ 10000 iterations in: 0.000214 sec for $i++ 10000 iterations in: 0.000209 sec foreach 10000 iterations in: 0.000123 sec while reset, next 10000 iterations in: 0.000358 sec while current, next 10000 iterations in: 0.000584 sec do while next 10000 iterations in 0.000397 sec while array_shift 10000 iterations in: 0.216651 sec while array_pop 10000 iterations in: 0.000609 sec
Output for 7.2.7
while $i++ 10000 iterations in: 0.000298 sec for $i++ 10000 iterations in: 0.000285 sec foreach 10000 iterations in: 0.000217 sec while reset, next 10000 iterations in: 0.000552 sec while current, next 10000 iterations in: 0.000741 sec do while next 10000 iterations in 0.000504 sec while array_shift 10000 iterations in: 0.215957 sec while array_pop 10000 iterations in: 0.000784 sec
Output for 7.2.6
while $i++ 10000 iterations in: 0.000582 sec for $i++ 10000 iterations in: 0.000727 sec foreach 10000 iterations in: 0.000386 sec while reset, next 10000 iterations in: 0.001216 sec while current, next 10000 iterations in: 0.001911 sec do while next 10000 iterations in 0.000425 sec while array_shift 10000 iterations in: 0.212908 sec while array_pop 10000 iterations in: 0.000697 sec
Output for 7.2.5
while $i++ 10000 iterations in: 0.024908 sec for $i++ 10000 iterations in: 0.000549 sec foreach 10000 iterations in: 0.000372 sec while reset, next 10000 iterations in: 0.000966 sec while current, next 10000 iterations in: 0.001795 sec do while next 10000 iterations in 0.000759 sec while array_shift 10000 iterations in: 0.214219 sec while array_pop 10000 iterations in: 0.000596 sec
Output for 7.2.4
while $i++ 10000 iterations in: 0.006484 sec for $i++ 10000 iterations in: 0.000341 sec foreach 10000 iterations in: 0.000194 sec while reset, next 10000 iterations in: 0.000597 sec while current, next 10000 iterations in: 0.000965 sec do while next 10000 iterations in 0.000629 sec while array_shift 10000 iterations in: 0.232853 sec while array_pop 10000 iterations in: 0.000690 sec
Output for 7.2.3
while $i++ 10000 iterations in: 0.000396 sec for $i++ 10000 iterations in: 0.000401 sec foreach 10000 iterations in: 0.000215 sec while reset, next 10000 iterations in: 0.000532 sec while current, next 10000 iterations in: 0.000959 sec do while next 10000 iterations in 0.000589 sec while array_shift 10000 iterations in: 0.238148 sec while array_pop 10000 iterations in: 0.000589 sec
Output for 7.2.2
while $i++ 10000 iterations in: 0.000422 sec for $i++ 10000 iterations in: 0.000456 sec foreach 10000 iterations in: 0.000233 sec while reset, next 10000 iterations in: 0.000658 sec while current, next 10000 iterations in: 0.000766 sec do while next 10000 iterations in 0.000438 sec while array_shift 10000 iterations in: 0.220407 sec while array_pop 10000 iterations in: 0.000592 sec
Output for 7.2.1
while $i++ 10000 iterations in: 0.000326 sec for $i++ 10000 iterations in: 0.000296 sec foreach 10000 iterations in: 0.022991 sec while reset, next 10000 iterations in: 0.000556 sec while current, next 10000 iterations in: 0.001007 sec do while next 10000 iterations in 0.000649 sec while array_shift 10000 iterations in: 0.238642 sec while array_pop 10000 iterations in: 0.000587 sec
Output for 7.2.0
while $i++ 10000 iterations in: 0.000400 sec for $i++ 10000 iterations in: 0.000389 sec foreach 10000 iterations in: 0.000191 sec while reset, next 10000 iterations in: 0.000535 sec while current, next 10000 iterations in: 0.000969 sec do while next 10000 iterations in 0.000562 sec while array_shift 10000 iterations in: 0.231120 sec while array_pop 10000 iterations in: 0.000773 sec
Output for 7.1.25
while $i++ 10000 iterations in: 0.000397 sec for $i++ 10000 iterations in: 0.000380 sec foreach 10000 iterations in: 0.000315 sec while reset, next 10000 iterations in: 0.000801 sec while current, next 10000 iterations in: 0.001338 sec do while next 10000 iterations in 0.000810 sec while array_shift 10000 iterations in: 0.214270 sec while array_pop 10000 iterations in: 0.000920 sec
Output for 7.1.24
while $i++ 10000 iterations in: 0.000470 sec for $i++ 10000 iterations in: 0.000460 sec foreach 10000 iterations in: 0.000442 sec while reset, next 10000 iterations in: 0.000996 sec while current, next 10000 iterations in: 0.002048 sec do while next 10000 iterations in 0.001017 sec while array_shift 10000 iterations in: 0.223202 sec while array_pop 10000 iterations in: 0.001253 sec
Output for 7.1.23
while $i++ 10000 iterations in: 0.000519 sec for $i++ 10000 iterations in: 0.000645 sec foreach 10000 iterations in: 0.000593 sec while reset, next 10000 iterations in: 0.001396 sec while current, next 10000 iterations in: 0.002118 sec do while next 10000 iterations in 0.001456 sec while array_shift 10000 iterations in: 0.225542 sec while array_pop 10000 iterations in: 0.001299 sec
Output for 7.1.22
while $i++ 10000 iterations in: 0.000438 sec for $i++ 10000 iterations in: 0.000513 sec foreach 10000 iterations in: 0.000484 sec while reset, next 10000 iterations in: 0.001090 sec while current, next 10000 iterations in: 0.001403 sec do while next 10000 iterations in 0.000925 sec while array_shift 10000 iterations in: 0.222095 sec while array_pop 10000 iterations in: 0.001017 sec
Output for 7.1.21
while $i++ 10000 iterations in: 0.000475 sec for $i++ 10000 iterations in: 0.000512 sec foreach 10000 iterations in: 0.000464 sec while reset, next 10000 iterations in: 0.001043 sec while current, next 10000 iterations in: 0.001456 sec do while next 10000 iterations in 0.000949 sec while array_shift 10000 iterations in: 0.221653 sec while array_pop 10000 iterations in: 0.000908 sec
Output for 7.1.20
while $i++ 10000 iterations in: 0.000436 sec for $i++ 10000 iterations in: 0.000459 sec foreach 10000 iterations in: 0.000360 sec while reset, next 10000 iterations in: 0.000885 sec while current, next 10000 iterations in: 0.002169 sec do while next 10000 iterations in 0.000991 sec while array_shift 10000 iterations in: 0.223501 sec while array_pop 10000 iterations in: 0.001007 sec
Output for 7.1.19
while $i++ 10000 iterations in: 0.000614 sec for $i++ 10000 iterations in: 0.000598 sec foreach 10000 iterations in: 0.000316 sec while reset, next 10000 iterations in: 0.000782 sec while current, next 10000 iterations in: 0.001252 sec do while next 10000 iterations in 0.000972 sec while array_shift 10000 iterations in: 0.230140 sec while array_pop 10000 iterations in: 0.001302 sec
Output for 7.1.18
while $i++ 10000 iterations in: 0.000393 sec for $i++ 10000 iterations in: 0.000385 sec foreach 10000 iterations in: 0.000320 sec while reset, next 10000 iterations in: 0.000782 sec while current, next 10000 iterations in: 0.001467 sec do while next 10000 iterations in 0.000805 sec while array_shift 10000 iterations in: 0.220853 sec while array_pop 10000 iterations in: 0.001244 sec
Output for 7.1.17
while $i++ 10000 iterations in: 0.000390 sec for $i++ 10000 iterations in: 0.000379 sec foreach 10000 iterations in: 0.000330 sec while reset, next 10000 iterations in: 0.000795 sec while current, next 10000 iterations in: 0.001445 sec do while next 10000 iterations in 0.000896 sec while array_shift 10000 iterations in: 0.229244 sec while array_pop 10000 iterations in: 0.001349 sec
Output for 7.1.16
while $i++ 10000 iterations in: 0.000393 sec for $i++ 10000 iterations in: 0.000380 sec foreach 10000 iterations in: 0.000335 sec while reset, next 10000 iterations in: 0.000942 sec while current, next 10000 iterations in: 0.001381 sec do while next 10000 iterations in 0.001086 sec while array_shift 10000 iterations in: 0.223143 sec while array_pop 10000 iterations in: 0.001200 sec
Output for 7.1.15
while $i++ 10000 iterations in: 0.000394 sec for $i++ 10000 iterations in: 0.000381 sec foreach 10000 iterations in: 0.000371 sec while reset, next 10000 iterations in: 0.000867 sec while current, next 10000 iterations in: 0.001264 sec do while next 10000 iterations in 0.000901 sec while array_shift 10000 iterations in: 0.225037 sec while array_pop 10000 iterations in: 0.001261 sec
Output for 7.1.14
while $i++ 10000 iterations in: 0.000480 sec for $i++ 10000 iterations in: 0.000548 sec foreach 10000 iterations in: 0.000494 sec while reset, next 10000 iterations in: 0.001157 sec while current, next 10000 iterations in: 0.001774 sec do while next 10000 iterations in 0.001415 sec while array_shift 10000 iterations in: 0.219365 sec while array_pop 10000 iterations in: 0.000937 sec
Output for 7.1.13
while $i++ 10000 iterations in: 0.014342 sec for $i++ 10000 iterations in: 0.000683 sec foreach 10000 iterations in: 0.000500 sec while reset, next 10000 iterations in: 0.001446 sec while current, next 10000 iterations in: 0.002072 sec do while next 10000 iterations in 0.001473 sec while array_shift 10000 iterations in: 0.223520 sec while array_pop 10000 iterations in: 0.001264 sec
Output for 7.1.12
while $i++ 10000 iterations in: 0.000941 sec for $i++ 10000 iterations in: 0.000810 sec foreach 10000 iterations in: 0.000696 sec while reset, next 10000 iterations in: 0.001736 sec while current, next 10000 iterations in: 0.002643 sec do while next 10000 iterations in 0.001654 sec while array_shift 10000 iterations in: 0.228771 sec while array_pop 10000 iterations in: 0.000925 sec
Output for 7.1.11
while $i++ 10000 iterations in: 0.000543 sec for $i++ 10000 iterations in: 0.000530 sec foreach 10000 iterations in: 0.000517 sec while reset, next 10000 iterations in: 0.001149 sec while current, next 10000 iterations in: 0.001676 sec do while next 10000 iterations in 0.001179 sec while array_shift 10000 iterations in: 0.220417 sec while array_pop 10000 iterations in: 0.001063 sec
Output for 7.1.10
while $i++ 10000 iterations in: 0.000389 sec for $i++ 10000 iterations in: 0.000382 sec foreach 10000 iterations in: 0.000381 sec while reset, next 10000 iterations in: 0.000792 sec while current, next 10000 iterations in: 0.001237 sec do while next 10000 iterations in 0.000836 sec while array_shift 10000 iterations in: 0.220757 sec while array_pop 10000 iterations in: 0.000977 sec
Output for 7.1.9
while $i++ 10000 iterations in: 0.000533 sec for $i++ 10000 iterations in: 0.000526 sec foreach 10000 iterations in: 0.000462 sec while reset, next 10000 iterations in: 0.000883 sec while current, next 10000 iterations in: 0.001629 sec do while next 10000 iterations in 0.001169 sec while array_shift 10000 iterations in: 0.228182 sec while array_pop 10000 iterations in: 0.001032 sec
Output for 7.1.8
while $i++ 10000 iterations in: 0.000575 sec for $i++ 10000 iterations in: 0.000605 sec foreach 10000 iterations in: 0.000490 sec while reset, next 10000 iterations in: 0.001087 sec while current, next 10000 iterations in: 0.001888 sec do while next 10000 iterations in 0.001519 sec while array_shift 10000 iterations in: 0.222606 sec while array_pop 10000 iterations in: 0.000962 sec
Output for 7.1.7
while $i++ 10000 iterations in: 0.000391 sec for $i++ 10000 iterations in: 0.000384 sec foreach 10000 iterations in: 0.000318 sec while reset, next 10000 iterations in: 0.000783 sec while current, next 10000 iterations in: 0.001256 sec do while next 10000 iterations in 0.000841 sec while array_shift 10000 iterations in: 0.215894 sec while array_pop 10000 iterations in: 0.000968 sec
Output for 7.1.6
while $i++ 10000 iterations in: 0.000476 sec for $i++ 10000 iterations in: 0.000480 sec foreach 10000 iterations in: 0.000389 sec while reset, next 10000 iterations in: 0.001007 sec while current, next 10000 iterations in: 0.001537 sec do while next 10000 iterations in 0.000997 sec while array_shift 10000 iterations in: 0.217183 sec while array_pop 10000 iterations in: 0.000976 sec
Output for 7.1.5
while $i++ 10000 iterations in: 0.000406 sec for $i++ 10000 iterations in: 0.000380 sec foreach 10000 iterations in: 0.000334 sec while reset, next 10000 iterations in: 0.000815 sec while current, next 10000 iterations in: 0.001261 sec do while next 10000 iterations in 0.000824 sec while array_shift 10000 iterations in: 0.214161 sec while array_pop 10000 iterations in: 0.000966 sec
Output for 7.1.4
while $i++ 10000 iterations in: 0.000597 sec for $i++ 10000 iterations in: 0.000594 sec foreach 10000 iterations in: 0.000506 sec while reset, next 10000 iterations in: 0.001092 sec while current, next 10000 iterations in: 0.001345 sec do while next 10000 iterations in 0.001426 sec while array_shift 10000 iterations in: 0.222336 sec while array_pop 10000 iterations in: 0.001057 sec
Output for 7.1.3
while $i++ 10000 iterations in: 0.000582 sec for $i++ 10000 iterations in: 0.000581 sec foreach 10000 iterations in: 0.000488 sec while reset, next 10000 iterations in: 0.001229 sec while current, next 10000 iterations in: 0.001365 sec do while next 10000 iterations in 0.000891 sec while array_shift 10000 iterations in: 0.222990 sec while array_pop 10000 iterations in: 0.001062 sec
Output for 7.1.2
while $i++ 10000 iterations in: 0.000539 sec for $i++ 10000 iterations in: 0.000430 sec foreach 10000 iterations in: 0.000319 sec while reset, next 10000 iterations in: 0.000768 sec while current, next 10000 iterations in: 0.001239 sec do while next 10000 iterations in 0.000821 sec while array_shift 10000 iterations in: 0.213496 sec while array_pop 10000 iterations in: 0.001077 sec
Output for 7.1.1
while $i++ 10000 iterations in: 0.000981 sec for $i++ 10000 iterations in: 0.000965 sec foreach 10000 iterations in: 0.000836 sec while reset, next 10000 iterations in: 0.002107 sec while current, next 10000 iterations in: 0.003382 sec do while next 10000 iterations in 0.001162 sec while array_shift 10000 iterations in: 0.214266 sec while array_pop 10000 iterations in: 0.000936 sec
Output for 7.1.0
while $i++ 10000 iterations in: 0.000611 sec for $i++ 10000 iterations in: 0.000381 sec foreach 10000 iterations in: 0.000428 sec while reset, next 10000 iterations in: 0.000797 sec while current, next 10000 iterations in: 0.001237 sec do while next 10000 iterations in 0.000816 sec while array_shift 10000 iterations in: 0.212472 sec while array_pop 10000 iterations in: 0.000870 sec
Output for 7.0.33
while $i++ 10000 iterations in: 0.000545 sec for $i++ 10000 iterations in: 0.000648 sec foreach 10000 iterations in: 0.000708 sec while reset, next 10000 iterations in: 0.001828 sec while current, next 10000 iterations in: 0.003094 sec do while next 10000 iterations in 0.001424 sec while array_shift 10000 iterations in: 0.224326 sec while array_pop 10000 iterations in: 0.001081 sec
Output for 7.0.32
while $i++ 10000 iterations in: 0.000400 sec for $i++ 10000 iterations in: 0.000386 sec foreach 10000 iterations in: 0.000319 sec while reset, next 10000 iterations in: 0.000790 sec while current, next 10000 iterations in: 0.001851 sec do while next 10000 iterations in 0.000815 sec while array_shift 10000 iterations in: 0.231242 sec while array_pop 10000 iterations in: 0.001363 sec
Output for 7.0.31
while $i++ 10000 iterations in: 0.000512 sec for $i++ 10000 iterations in: 0.000495 sec foreach 10000 iterations in: 0.000320 sec while reset, next 10000 iterations in: 0.000823 sec while current, next 10000 iterations in: 0.001386 sec do while next 10000 iterations in 0.001678 sec while array_shift 10000 iterations in: 0.227896 sec while array_pop 10000 iterations in: 0.001179 sec
Output for 7.0.30
while $i++ 10000 iterations in: 0.000508 sec for $i++ 10000 iterations in: 0.000528 sec foreach 10000 iterations in: 0.000350 sec while reset, next 10000 iterations in: 0.000799 sec while current, next 10000 iterations in: 0.001559 sec do while next 10000 iterations in 0.000948 sec while array_shift 10000 iterations in: 0.223931 sec while array_pop 10000 iterations in: 0.001409 sec
Output for 7.0.29
while $i++ 10000 iterations in: 0.000401 sec for $i++ 10000 iterations in: 0.000561 sec foreach 10000 iterations in: 0.000401 sec while reset, next 10000 iterations in: 0.001080 sec while current, next 10000 iterations in: 0.001793 sec do while next 10000 iterations in 0.001135 sec while array_shift 10000 iterations in: 0.220549 sec while array_pop 10000 iterations in: 0.001279 sec
Output for 7.0.28
while $i++ 10000 iterations in: 0.000545 sec for $i++ 10000 iterations in: 0.000530 sec foreach 10000 iterations in: 0.000511 sec while reset, next 10000 iterations in: 0.001187 sec while current, next 10000 iterations in: 0.001911 sec do while next 10000 iterations in 0.001190 sec while array_shift 10000 iterations in: 0.218066 sec while array_pop 10000 iterations in: 0.001010 sec
Output for 7.0.27
while $i++ 10000 iterations in: 0.000485 sec for $i++ 10000 iterations in: 0.000983 sec foreach 10000 iterations in: 0.001068 sec while reset, next 10000 iterations in: 0.002426 sec while current, next 10000 iterations in: 0.001644 sec do while next 10000 iterations in 0.001030 sec while array_shift 10000 iterations in: 0.224690 sec while array_pop 10000 iterations in: 0.001076 sec
Output for 7.0.26
while $i++ 10000 iterations in: 0.000398 sec for $i++ 10000 iterations in: 0.000380 sec foreach 10000 iterations in: 0.000354 sec while reset, next 10000 iterations in: 0.000840 sec while current, next 10000 iterations in: 0.001410 sec do while next 10000 iterations in 0.000887 sec while array_shift 10000 iterations in: 0.229501 sec while array_pop 10000 iterations in: 0.001001 sec
Output for 7.0.25
while $i++ 10000 iterations in: 0.000504 sec for $i++ 10000 iterations in: 0.000543 sec foreach 10000 iterations in: 0.000468 sec while reset, next 10000 iterations in: 0.001097 sec while current, next 10000 iterations in: 0.001847 sec do while next 10000 iterations in 0.001171 sec while array_shift 10000 iterations in: 0.233725 sec while array_pop 10000 iterations in: 0.001001 sec
Output for 7.0.24
while $i++ 10000 iterations in: 0.000808 sec for $i++ 10000 iterations in: 0.001091 sec foreach 10000 iterations in: 0.001005 sec while reset, next 10000 iterations in: 0.001441 sec while current, next 10000 iterations in: 0.001836 sec do while next 10000 iterations in 0.000846 sec while array_shift 10000 iterations in: 0.219515 sec while array_pop 10000 iterations in: 0.001372 sec
Output for 7.0.23
while $i++ 10000 iterations in: 0.000531 sec for $i++ 10000 iterations in: 0.000522 sec foreach 10000 iterations in: 0.000438 sec while reset, next 10000 iterations in: 0.001073 sec while current, next 10000 iterations in: 0.001964 sec do while next 10000 iterations in 0.001122 sec while array_shift 10000 iterations in: 0.222268 sec while array_pop 10000 iterations in: 0.000988 sec
Output for 7.0.22
while $i++ 10000 iterations in: 0.000529 sec for $i++ 10000 iterations in: 0.000534 sec foreach 10000 iterations in: 0.000340 sec while reset, next 10000 iterations in: 0.001117 sec while current, next 10000 iterations in: 0.001639 sec do while next 10000 iterations in 0.001200 sec while array_shift 10000 iterations in: 0.213659 sec while array_pop 10000 iterations in: 0.000975 sec
Output for 7.0.21
while $i++ 10000 iterations in: 0.000535 sec for $i++ 10000 iterations in: 0.000517 sec foreach 10000 iterations in: 0.000506 sec while reset, next 10000 iterations in: 0.001105 sec while current, next 10000 iterations in: 0.001852 sec do while next 10000 iterations in 0.001012 sec while array_shift 10000 iterations in: 0.240003 sec while array_pop 10000 iterations in: 0.001062 sec
Output for 7.0.20
while $i++ 10000 iterations in: 0.000426 sec for $i++ 10000 iterations in: 0.000470 sec foreach 10000 iterations in: 0.000472 sec while reset, next 10000 iterations in: 0.001148 sec while current, next 10000 iterations in: 0.001733 sec do while next 10000 iterations in 0.001091 sec while array_shift 10000 iterations in: 0.224328 sec while array_pop 10000 iterations in: 0.000977 sec
Output for 7.0.19
while $i++ 10000 iterations in: 0.000766 sec for $i++ 10000 iterations in: 0.000753 sec foreach 10000 iterations in: 0.000647 sec while reset, next 10000 iterations in: 0.001517 sec while current, next 10000 iterations in: 0.002664 sec do while next 10000 iterations in 0.001128 sec while array_shift 10000 iterations in: 0.214920 sec while array_pop 10000 iterations in: 0.000980 sec
Output for 7.0.18
while $i++ 10000 iterations in: 0.000491 sec for $i++ 10000 iterations in: 0.000501 sec foreach 10000 iterations in: 0.000476 sec while reset, next 10000 iterations in: 0.001075 sec while current, next 10000 iterations in: 0.001828 sec do while next 10000 iterations in 0.001114 sec while array_shift 10000 iterations in: 0.222881 sec while array_pop 10000 iterations in: 0.001281 sec
Output for 7.0.17
while $i++ 10000 iterations in: 0.000909 sec for $i++ 10000 iterations in: 0.000938 sec foreach 10000 iterations in: 0.000408 sec while reset, next 10000 iterations in: 0.000991 sec while current, next 10000 iterations in: 0.001716 sec do while next 10000 iterations in 0.001073 sec while array_shift 10000 iterations in: 0.213957 sec while array_pop 10000 iterations in: 0.000959 sec
Output for 7.0.16
while $i++ 10000 iterations in: 0.000782 sec for $i++ 10000 iterations in: 0.000792 sec foreach 10000 iterations in: 0.000674 sec while reset, next 10000 iterations in: 0.001709 sec while current, next 10000 iterations in: 0.002858 sec do while next 10000 iterations in 0.001731 sec while array_shift 10000 iterations in: 0.212623 sec while array_pop 10000 iterations in: 0.000987 sec
Output for 7.0.15
while $i++ 10000 iterations in: 0.001084 sec for $i++ 10000 iterations in: 0.001043 sec foreach 10000 iterations in: 0.000875 sec while reset, next 10000 iterations in: 0.002197 sec while current, next 10000 iterations in: 0.003847 sec do while next 10000 iterations in 0.001694 sec while array_shift 10000 iterations in: 0.211740 sec while array_pop 10000 iterations in: 0.000980 sec
Output for 7.0.14
while $i++ 10000 iterations in: 0.000960 sec for $i++ 10000 iterations in: 0.000900 sec foreach 10000 iterations in: 0.000788 sec while reset, next 10000 iterations in: 0.001902 sec while current, next 10000 iterations in: 0.003302 sec do while next 10000 iterations in 0.001994 sec while array_shift 10000 iterations in: 0.215368 sec while array_pop 10000 iterations in: 0.000982 sec
Output for 7.0.13
while $i++ 10000 iterations in: 0.001078 sec for $i++ 10000 iterations in: 0.001044 sec foreach 10000 iterations in: 0.001309 sec while reset, next 10000 iterations in: 0.002474 sec while current, next 10000 iterations in: 0.001533 sec do while next 10000 iterations in 0.000840 sec while array_shift 10000 iterations in: 0.211906 sec while array_pop 10000 iterations in: 0.000997 sec
Output for 7.0.12
while $i++ 10000 iterations in: 0.001083 sec for $i++ 10000 iterations in: 0.001048 sec foreach 10000 iterations in: 0.000878 sec while reset, next 10000 iterations in: 0.002187 sec while current, next 10000 iterations in: 0.003749 sec do while next 10000 iterations in 0.001693 sec while array_shift 10000 iterations in: 0.204707 sec while array_pop 10000 iterations in: 0.000938 sec
Output for 7.0.11
while $i++ 10000 iterations in: 0.000635 sec for $i++ 10000 iterations in: 0.000645 sec foreach 10000 iterations in: 0.000527 sec while reset, next 10000 iterations in: 0.001297 sec while current, next 10000 iterations in: 0.002396 sec do while next 10000 iterations in 0.001372 sec while array_shift 10000 iterations in: 0.213610 sec while array_pop 10000 iterations in: 0.000970 sec
Output for 7.0.10
while $i++ 10000 iterations in: 0.000707 sec for $i++ 10000 iterations in: 0.000800 sec foreach 10000 iterations in: 0.000883 sec while reset, next 10000 iterations in: 0.001805 sec while current, next 10000 iterations in: 0.002875 sec do while next 10000 iterations in 0.001781 sec while array_shift 10000 iterations in: 0.220557 sec while array_pop 10000 iterations in: 0.000979 sec
Output for 7.0.9
while $i++ 10000 iterations in: 0.001070 sec for $i++ 10000 iterations in: 0.001063 sec foreach 10000 iterations in: 0.000521 sec while reset, next 10000 iterations in: 0.001028 sec while current, next 10000 iterations in: 0.002284 sec do while next 10000 iterations in 0.001082 sec while array_shift 10000 iterations in: 0.217014 sec while array_pop 10000 iterations in: 0.000973 sec
Output for 7.0.8
while $i++ 10000 iterations in: 0.000604 sec for $i++ 10000 iterations in: 0.000551 sec foreach 10000 iterations in: 0.000434 sec while reset, next 10000 iterations in: 0.000820 sec while current, next 10000 iterations in: 0.001426 sec do while next 10000 iterations in 0.000895 sec while array_shift 10000 iterations in: 0.212276 sec while array_pop 10000 iterations in: 0.000989 sec
Output for 7.0.7
while $i++ 10000 iterations in: 0.001059 sec for $i++ 10000 iterations in: 0.001060 sec foreach 10000 iterations in: 0.000872 sec while reset, next 10000 iterations in: 0.002271 sec while current, next 10000 iterations in: 0.004053 sec do while next 10000 iterations in 0.002258 sec while array_shift 10000 iterations in: 0.211568 sec while array_pop 10000 iterations in: 0.000970 sec
Output for 7.0.6
while $i++ 10000 iterations in: 0.000388 sec for $i++ 10000 iterations in: 0.000380 sec foreach 10000 iterations in: 0.000319 sec while reset, next 10000 iterations in: 0.000807 sec while current, next 10000 iterations in: 0.001428 sec do while next 10000 iterations in 0.000860 sec while array_shift 10000 iterations in: 0.212995 sec while array_pop 10000 iterations in: 0.000960 sec
Output for 7.0.5
while $i++ 10000 iterations in: 0.000447 sec for $i++ 10000 iterations in: 0.000430 sec foreach 10000 iterations in: 0.000411 sec while reset, next 10000 iterations in: 0.001097 sec while current, next 10000 iterations in: 0.001552 sec do while next 10000 iterations in 0.001066 sec while array_shift 10000 iterations in: 0.220638 sec while array_pop 10000 iterations in: 0.001030 sec
Output for 7.0.4
while $i++ 10000 iterations in: 0.000588 sec for $i++ 10000 iterations in: 0.000574 sec foreach 10000 iterations in: 0.000497 sec while reset, next 10000 iterations in: 0.001173 sec while current, next 10000 iterations in: 0.002174 sec do while next 10000 iterations in 0.001257 sec while array_shift 10000 iterations in: 0.212512 sec while array_pop 10000 iterations in: 0.000991 sec
Output for 7.0.3
while $i++ 10000 iterations in: 0.000820 sec for $i++ 10000 iterations in: 0.000811 sec foreach 10000 iterations in: 0.000518 sec while reset, next 10000 iterations in: 0.000864 sec while current, next 10000 iterations in: 0.001499 sec do while next 10000 iterations in 0.000892 sec while array_shift 10000 iterations in: 0.220374 sec while array_pop 10000 iterations in: 0.001053 sec
Output for 7.0.2
while $i++ 10000 iterations in: 0.000844 sec for $i++ 10000 iterations in: 0.000706 sec foreach 10000 iterations in: 0.000615 sec while reset, next 10000 iterations in: 0.001519 sec while current, next 10000 iterations in: 0.002598 sec do while next 10000 iterations in 0.001488 sec while array_shift 10000 iterations in: 0.212317 sec while array_pop 10000 iterations in: 0.000990 sec
Output for 7.0.1
while $i++ 10000 iterations in: 0.000479 sec for $i++ 10000 iterations in: 0.000463 sec foreach 10000 iterations in: 0.000401 sec while reset, next 10000 iterations in: 0.000976 sec while current, next 10000 iterations in: 0.002052 sec do while next 10000 iterations in 0.001047 sec while array_shift 10000 iterations in: 0.222808 sec while array_pop 10000 iterations in: 0.001009 sec
Output for 7.0.0
while $i++ 10000 iterations in: 0.000498 sec for $i++ 10000 iterations in: 0.000515 sec foreach 10000 iterations in: 0.000458 sec while reset, next 10000 iterations in: 0.001018 sec while current, next 10000 iterations in: 0.001396 sec do while next 10000 iterations in 0.000830 sec while array_shift 10000 iterations in: 0.212055 sec while array_pop 10000 iterations in: 0.000975 sec
Output for 5.6.38
while $i++ 10000 iterations in: 0.001150 sec for $i++ 10000 iterations in: 0.015102 sec foreach 10000 iterations in: 0.001050 sec while reset, next 10000 iterations in: 0.002265 sec while current, next 10000 iterations in: 0.003707 sec do while next 10000 iterations in 0.002166 sec while array_shift 10000 iterations in: 0.524596 sec while array_pop 10000 iterations in: 0.002880 sec

preferences:
41.86 ms | 544 KiB | 5 Q