Check if multiple elements exists into array with multiple isset
<?php
$values = array_flip($this->getRange($loop));
$this->start($loop);
for ($i = 0; $i < $this->loop; ++$i) {
$value = isset($values[$i]) && isset($values[$i - 1]) && isset($values[$i + 1]);
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.3.13 | 100.000 | 0.007225 | +474% |
8.3.10 | 100.000 | 0.004457 | +292% |
8.3.9 | 100.000 | 0.004808 | +315% |
7.3.33 | 100.000 | 0.003026 | +198% |
7.3.31 | 100.000 | 0.002039 | +134% |
7.3.30 | 100.000 | 0.002075 | +136% |
7.3.29 | 100.000 | 0.002130 | +140% |
7.3.28 | 100.000 | 0.002012 | +132% |
7.3.27 | 100.000 | 0.002567 | +168% |
7.3.24 | 100.000 | 0.002034 | +133% |
7.3.23 | 100.000 | 0.002279 | +149% |
7.3.22 | 100.000 | 0.002303 | +151% |
7.3.19 | 100.000 | 0.002153 | +141% |
7.3.18 | 100.000 | 0.002020 | +132% |
7.3.17 | 100.000 | 0.001982 | +130% |
7.3.16 | 100.000 | 0.001794 | +118% |
7.3.15 | 100.000 | 0.001788 | +117% |
7.3.14 | 100.000 | 0.002201 | +144% |
7.3.13 | 100.000 | 0.002198 | +144% |
7.3.12 | 100.000 | 0.001982 | +130% |
7.3.11 | 100.000 | 0.002109 | +138% |
7.3.9 | 100.000 | 0.002574 | +169% |
7.3.8 | 100.000 | 0.002680 | +176% |
7.2.29 | 100.000 | 0.002298 | +151% |
8.3.13 | 10.000 | 0.001015 | +414% |
7.2.34 | 100.000 | 0.003025 | +198% |
7.2.33 | 100.000 | 0.002598 | +170% |
7.2.31 | 100.000 | 0.002545 | +167% |
7.2.30 | 100.000 | 0.002438 | +160% |
8.3.10 | 10.000 | 0.000824 | +336% |
7.2.28 | 100.000 | 0.002295 | +150% |
7.2.27 | 100.000 | 0.002353 | +154% |
7.2.26 | 100.000 | 0.002410 | +158% |
7.2.25 | 100.000 | 0.002156 | +141% |
7.2.24 | 100.000 | 0.002596 | +170% |
7.2.22 | 100.000 | 0.003023 | +198% |
7.2.21 | 100.000 | 0.003420 | +224% |
7.1.33 | 100.000 | 0.004182 | +274% |
7.1.32 | 100.000 | 0.006342 | +416% |
7.1.31 | 100.000 | 0.006382 | +418% |
7.1.0 | 100.000 | 0.025493 | +1672% |
7.0.33 | 100.000 | 0.003696 | +242% |
7.0.7 | 100.000 | 0.024662 | +1617% |
5.6.40 | 100.000 | 0.007656 | +502% |
5.6.22 | 100.000 | 0.042758 | +2804% |
5.5.36 | 100.000 | 0.044440 | +2914% |
5.4.45 | 100.000 | 0.043421 | +2847% |
5.3.29 | 100.000 | 0.054377 | +3565% |
8.3.9 | 10.000 | 0.000960 | +392% |
8.0.30 | 100.000 | 0.004000 | +262% |
8.0.29 | 100.000 | 0.002734 | +179% |
8.0.28 | 100.000 | 0.002680 | +176% |
8.0.27 | 100.000 | 0.002747 | +180% |
8.0.26 | 100.000 | 0.003134 | +205% |
8.0.25 | 100.000 | 0.002910 | +191% |
8.0.24 | 100.000 | 0.002419 | +159% |
8.0.23 | 100.000 | 0.002753 | +181% |
8.0.20 | 10.000 | 0.000416 | +170% |
8.0.20 | 100.000 | 0.002760 | +181% |
8.0.19 | 10.000 | 0.000503 | +205% |
8.0.19 | 100.000 | 0.002586 | +170% |
8.0.17 | 10.000 | 0.000482 | +196% |
8.0.17 | 100.000 | 0.002713 | +178% |
8.0.16 | 10.000 | 0.000483 | +197% |
8.0.16 | 100.000 | 0.002594 | +170% |
8.0.14 | 10.000 | 0.000513 | +209% |
8.0.14 | 100.000 | 0.002829 | +186% |
8.0.11 | 100.000 | 0.002548 | +167% |
8.0.10 | 100.000 | 0.003113 | +204% |
8.0.9 | 100.000 | 0.002420 | +159% |
8.0.8 | 100.000 | 0.003278 | +215% |
8.0.7 | 100.000 | 0.003191 | +209% |
8.0.3 | 100.000 | 0.003376 | +221% |
8.0.2 | 100.000 | 0.004296 | +282% |
8.0.0 | 100.000 | 0.002720 | +178% |
7.4.33 | 100.000 | 0.002343 | +154% |
7.4.32 | 100.000 | 0.001863 | +122% |
7.4.30 | 100.000 | 0.001817 | +119% |
7.4.28 | 100.000 | 0.001737 | +114% |
7.4.27 | 100.000 | 0.001707 | +112% |
7.4.24 | 100.000 | 0.001856 | +122% |
7.4.23 | 100.000 | 0.001674 | +110% |
7.4.22 | 100.000 | 0.001572 | +103% |
8.0.11 | 10.000 | 0.000485 | +198% |
8.0.10 | 10.000 | 0.000433 | +176% |
8.0.0 | 10.000 | 0.000500 | +204% |
7.4.29 | 100.000 | 0.001895 | +124% |
7.4.21 | 10.000 | 0.000342 | +139% |
7.4.21 | 100.000 | 0.001624 | +106% |
7.4.20 | 10.000 | 0.000369 | +150% |
7.4.20 | 100.000 | 0.001975 | +129% |
7.4.16 | 100.000 | 0.002061 | +135% |
7.4.15 | 100.000 | 0.002475 | +162% |
7.4.33 | 10.000 | 0.000360 | +147% |
7.4.32 | 10.000 | 0.000278 | +113% |
7.4.30 | 10.000 | 0.000251 | +102% |
7.4.29 | 10.000 | 0.000355 | +145% |
7.4.24 | 10.000 | 0.000286 | +117% |
7.4.23 | 10.000 | 0.000312 | +127% |
7.4.22 | 10.000 | 0.000292 | +119% |
7.4.13 | 100.000 | 0.001664 | +109% |
7.4.12 | 100.000 | 0.001950 | +128% |
7.4.11 | 100.000 | 0.001867 | +122% |
7.4.10 | 100.000 | 0.001667 | +109% |
8.0.2 | 10.000 | 0.000705 | +287% |
7.4.0 | 100.000 | 0.002012 | +132% |
8.0.30 | 10.000 | 0.000638 | +260% |
8.0.29 | 10.000 | 0.000338 | +138% |
8.0.28 | 10.000 | 0.000329 | +134% |
8.0.27 | 10.000 | 0.000436 | +178% |
8.0.26 | 10.000 | 0.000382 | +156% |
8.0.25 | 10.000 | 0.000469 | +191% |
8.0.24 | 10.000 | 0.000438 | +178% |
8.0.23 | 10.000 | 0.000605 | +247% |
8.0.9 | 10.000 | 0.000382 | +156% |
8.0.8 | 10.000 | 0.000547 | +223% |
8.0.7 | 10.000 | 0.000579 | +236% |
8.0.3 | 10.000 | 0.000584 | +238% |
7.4.28 | 10.000 | 0.000317 | +129% |
7.4.27 | 10.000 | 0.000347 | +142% |
7.4.16 | 10.000 | 0.000417 | +170% |
7.4.15 | 10.000 | 0.000381 | +155% |
7.4.13 | 10.000 | 0.000307 | +125% |
7.4.12 | 10.000 | 0.000245 | 100% |
7.4.11 | 10.000 | 0.000291 | +118% |
7.4.10 | 10.000 | 0.000293 | +119% |
7.4.7 | 10.000 | 0.000328 | +134% |
7.4.7 | 100.000 | 0.001828 | +120% |
7.4.6 | 10.000 | 0.000299 | +122% |
7.4.6 | 100.000 | 0.001525 | 100% |
7.4.5 | 10.000 | 0.000269 | +110% |
7.4.5 | 100.000 | 0.001634 | +107% |
7.4.4 | 10.000 | 0.000265 | +108% |
7.4.4 | 100.000 | 0.001656 | +109% |
7.4.3 | 10.000 | 0.000287 | +117% |
7.4.3 | 100.000 | 0.001563 | +102% |
7.4.1 | 100.000 | 0.001760 | +115% |
7.4.2 | 10.000 | 0.000393 | +160% |
7.4.2 | 100.000 | 0.001665 | +109% |
7.4.1 | 10.000 | 0.000387 | +158% |
7.4.0 | 10.000 | 0.000295 | +120% |
7.3.33 | 10.000 | 0.000486 | +198% |
7.3.31 | 10.000 | 0.000377 | +154% |
7.3.30 | 10.000 | 0.000355 | +145% |
7.3.29 | 10.000 | 0.000383 | +156% |
7.3.28 | 10.000 | 0.000450 | +184% |
7.3.27 | 10.000 | 0.000503 | +205% |
7.3.24 | 10.000 | 0.000341 | +139% |
7.3.23 | 10.000 | 0.000351 | +143% |
7.3.22 | 10.000 | 0.000345 | +141% |
7.3.19 | 10.000 | 0.000410 | +167% |
7.3.18 | 10.000 | 0.000394 | +161% |
7.3.17 | 10.000 | 0.000447 | +182% |
7.3.16 | 10.000 | 0.000291 | +119% |
7.3.15 | 10.000 | 0.000336 | +137% |
7.3.14 | 10.000 | 0.000480 | +196% |
7.3.13 | 10.000 | 0.000456 | +186% |
7.3.12 | 10.000 | 0.000387 | +158% |
7.3.11 | 10.000 | 0.000311 | +127% |
7.3.9 | 10.000 | 0.000354 | +144% |
7.3.8 | 10.000 | 0.000341 | +139% |
7.2.34 | 10.000 | 0.000482 | +196% |
7.2.33 | 10.000 | 0.000380 | +155% |
7.2.31 | 10.000 | 0.000470 | +192% |
7.2.30 | 10.000 | 0.000466 | +190% |
7.2.29 | 10.000 | 0.000361 | +147% |
7.2.28 | 10.000 | 0.000447 | +182% |
7.2.27 | 10.000 | 0.000550 | +224% |
7.2.26 | 10.000 | 0.000459 | +187% |
7.2.25 | 10.000 | 0.000423 | +172% |
7.2.24 | 10.000 | 0.000387 | +158% |
7.2.22 | 10.000 | 0.000389 | +158% |
7.2.21 | 10.000 | 0.000370 | +151% |
7.1.33 | 10.000 | 0.000707 | +288% |
7.1.32 | 10.000 | 0.000858 | +350% |
7.1.31 | 10.000 | 0.000692 | +282% |
7.1.0 | 10.000 | 0.003014 | +1229% |
7.0.33 | 10.000 | 0.000642 | +262% |
7.0.7 | 10.000 | 0.002735 | +1115% |
5.6.40 | 10.000 | 0.001016 | +414% |
5.6.22 | 10.000 | 0.004533 | +1848% |
5.5.36 | 10.000 | 0.004721 | +1925% |
5.4.45 | 10.000 | 0.004535 | +1849% |
5.3.29 | 10.000 | 0.005789 | +2360% |