Create a if with brackets
<?php
$this->start($loop);
$value = 0;
for ($i = 0; $i < $this->loop; ++$i) {
if ($value === $i) {
$value = $i;
}
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.3.13 | 100.000 | 0.008021 | +437% |
8.3.10 | 100.000 | 0.005771 | +314% |
8.3.9 | 100.000 | 0.005674 | +309% |
7.3.33 | 100.000 | 0.003847 | +209% |
7.3.31 | 100.000 | 0.003184 | +173% |
7.3.30 | 100.000 | 0.003378 | +184% |
7.3.29 | 100.000 | 0.003209 | +175% |
7.3.28 | 100.000 | 0.003444 | +187% |
7.3.27 | 100.000 | 0.003897 | +212% |
7.3.24 | 100.000 | 0.002756 | +150% |
7.3.23 | 100.000 | 0.002607 | +142% |
7.3.22 | 100.000 | 0.003346 | +182% |
7.3.19 | 100.000 | 0.002879 | +157% |
7.3.18 | 100.000 | 0.002915 | +159% |
7.3.17 | 100.000 | 0.003101 | +169% |
7.3.16 | 100.000 | 0.003423 | +186% |
7.3.15 | 100.000 | 0.003269 | +178% |
7.3.14 | 100.000 | 0.004336 | +236% |
7.3.13 | 100.000 | 0.004162 | +227% |
7.3.12 | 100.000 | 0.003452 | +188% |
7.3.11 | 100.000 | 0.002813 | +153% |
7.3.9 | 100.000 | 0.002760 | +150% |
7.3.8 | 100.000 | 0.002559 | +139% |
7.2.29 | 100.000 | 0.004167 | +227% |
8.3.13 | 10.000 | 0.000880 | +448% |
7.2.34 | 100.000 | 0.003885 | +211% |
7.2.33 | 100.000 | 0.003415 | +186% |
7.2.31 | 100.000 | 0.003476 | +189% |
7.2.30 | 100.000 | 0.003446 | +188% |
8.3.10 | 10.000 | 0.000728 | +370% |
7.2.28 | 100.000 | 0.003742 | +204% |
7.2.27 | 100.000 | 0.004299 | +234% |
7.2.26 | 100.000 | 0.004862 | +265% |
7.2.25 | 100.000 | 0.003791 | +206% |
7.2.24 | 100.000 | 0.003149 | +171% |
7.2.22 | 100.000 | 0.003203 | +174% |
7.2.21 | 100.000 | 0.002821 | +154% |
7.1.33 | 100.000 | 0.004320 | +235% |
7.1.32 | 100.000 | 0.003435 | +187% |
7.1.31 | 100.000 | 0.002784 | +152% |
7.1.0 | 100.000 | 0.016574 | +902% |
7.0.33 | 100.000 | 0.004106 | +223% |
7.0.7 | 100.000 | 0.015972 | +869% |
5.6.40 | 100.000 | 0.008584 | +467% |
5.6.22 | 100.000 | 0.026706 | +1453% |
5.5.36 | 100.000 | 0.028598 | +1556% |
5.4.45 | 100.000 | 0.029972 | +1631% |
5.3.29 | 100.000 | 0.039973 | +2176% |
8.3.9 | 10.000 | 0.000702 | +357% |
8.0.30 | 100.000 | 0.004448 | +242% |
8.0.29 | 100.000 | 0.001837 | 100% |
8.0.28 | 100.000 | 0.002350 | +128% |
8.0.27 | 100.000 | 0.003049 | +166% |
8.0.26 | 100.000 | 0.003079 | +168% |
8.0.25 | 100.000 | 0.003075 | +167% |
8.0.24 | 100.000 | 0.002357 | +128% |
8.0.23 | 100.000 | 0.002687 | +146% |
8.0.20 | 10.000 | 0.000231 | +118% |
8.0.20 | 100.000 | 0.002320 | +126% |
8.0.19 | 10.000 | 0.000346 | +176% |
8.0.19 | 100.000 | 0.003591 | +195% |
8.0.17 | 10.000 | 0.000267 | +136% |
8.0.17 | 100.000 | 0.003099 | +169% |
8.0.16 | 10.000 | 0.000373 | +190% |
8.0.16 | 100.000 | 0.003147 | +171% |
8.0.14 | 10.000 | 0.000288 | +146% |
8.0.14 | 100.000 | 0.003083 | +168% |
8.0.11 | 100.000 | 0.002692 | +147% |
8.0.10 | 100.000 | 0.002753 | +150% |
8.0.9 | 100.000 | 0.003060 | +167% |
8.0.8 | 100.000 | 0.003153 | +172% |
8.0.7 | 100.000 | 0.003010 | +164% |
8.0.3 | 100.000 | 0.003470 | +189% |
8.0.2 | 100.000 | 0.004065 | +221% |
8.0.0 | 100.000 | 0.002391 | +130% |
7.4.33 | 100.000 | 0.003701 | +201% |
7.4.32 | 100.000 | 0.002998 | +163% |
7.4.30 | 100.000 | 0.002630 | +143% |
7.4.28 | 100.000 | 0.003156 | +172% |
7.4.27 | 100.000 | 0.003310 | +180% |
7.4.24 | 100.000 | 0.002882 | +157% |
7.4.23 | 100.000 | 0.002544 | +138% |
7.4.22 | 100.000 | 0.002373 | +129% |
8.0.11 | 10.000 | 0.000291 | +148% |
8.0.10 | 10.000 | 0.000268 | +136% |
8.0.0 | 10.000 | 0.000262 | +133% |
7.4.29 | 100.000 | 0.003773 | +205% |
7.4.21 | 10.000 | 0.000281 | +143% |
7.4.21 | 100.000 | 0.003619 | +197% |
7.4.20 | 10.000 | 0.000258 | +131% |
7.4.20 | 100.000 | 0.002980 | +162% |
7.4.16 | 100.000 | 0.003853 | +210% |
7.4.15 | 100.000 | 0.003568 | +194% |
7.4.33 | 10.000 | 0.000403 | +205% |
7.4.32 | 10.000 | 0.000293 | +149% |
7.4.30 | 10.000 | 0.000246 | +125% |
7.4.29 | 10.000 | 0.000306 | +156% |
7.4.24 | 10.000 | 0.000278 | +141% |
7.4.23 | 10.000 | 0.000248 | +126% |
7.4.22 | 10.000 | 0.000257 | +131% |
7.4.13 | 100.000 | 0.002840 | +155% |
7.4.12 | 100.000 | 0.002311 | +126% |
7.4.11 | 100.000 | 0.002496 | +136% |
7.4.10 | 100.000 | 0.003005 | +164% |
8.0.2 | 10.000 | 0.000336 | +171% |
7.4.0 | 100.000 | 0.002507 | +136% |
8.0.30 | 10.000 | 0.000499 | +254% |
8.0.29 | 10.000 | 0.000197 | 100% |
8.0.28 | 10.000 | 0.000211 | +107% |
8.0.27 | 10.000 | 0.000249 | +127% |
8.0.26 | 10.000 | 0.000277 | +141% |
8.0.25 | 10.000 | 0.000290 | +148% |
8.0.24 | 10.000 | 0.000236 | +120% |
8.0.23 | 10.000 | 0.000269 | +137% |
8.0.9 | 10.000 | 0.000223 | +114% |
8.0.8 | 10.000 | 0.000290 | +148% |
8.0.7 | 10.000 | 0.000337 | +171% |
8.0.3 | 10.000 | 0.000332 | +169% |
7.4.28 | 10.000 | 0.000305 | +155% |
7.4.27 | 10.000 | 0.000347 | +176% |
7.4.16 | 10.000 | 0.000346 | +176% |
7.4.15 | 10.000 | 0.000376 | +191% |
7.4.13 | 10.000 | 0.000258 | +131% |
7.4.12 | 10.000 | 0.000276 | +141% |
7.4.11 | 10.000 | 0.000279 | +142% |
7.4.10 | 10.000 | 0.000310 | +157% |
7.4.7 | 10.000 | 0.000263 | +134% |
7.4.7 | 100.000 | 0.002860 | +156% |
7.4.6 | 10.000 | 0.000263 | +134% |
7.4.6 | 100.000 | 0.002989 | +163% |
7.4.5 | 10.000 | 0.000243 | +123% |
7.4.5 | 100.000 | 0.002651 | +144% |
7.4.4 | 10.000 | 0.000270 | +137% |
7.4.4 | 100.000 | 0.002567 | +140% |
7.4.3 | 10.000 | 0.000258 | +131% |
7.4.3 | 100.000 | 0.002947 | +160% |
7.4.1 | 100.000 | 0.003935 | +214% |
7.4.2 | 10.000 | 0.000348 | +177% |
7.4.2 | 100.000 | 0.003987 | +217% |
7.4.1 | 10.000 | 0.000327 | +166% |
7.4.0 | 10.000 | 0.000245 | +125% |
7.3.33 | 10.000 | 0.000418 | +213% |
7.3.31 | 10.000 | 0.000310 | +157% |
7.3.30 | 10.000 | 0.000353 | +180% |
7.3.29 | 10.000 | 0.000297 | +151% |
7.3.28 | 10.000 | 0.000310 | +158% |
7.3.27 | 10.000 | 0.000408 | +207% |
7.3.24 | 10.000 | 0.000266 | +135% |
7.3.23 | 10.000 | 0.000305 | +155% |
7.3.22 | 10.000 | 0.000277 | +141% |
7.3.19 | 10.000 | 0.000293 | +149% |
7.3.18 | 10.000 | 0.000280 | +142% |
7.3.17 | 10.000 | 0.000321 | +163% |
7.3.16 | 10.000 | 0.000274 | +139% |
7.3.15 | 10.000 | 0.000323 | +164% |
7.3.14 | 10.000 | 0.000372 | +189% |
7.3.13 | 10.000 | 0.000395 | +201% |
7.3.12 | 10.000 | 0.000319 | +162% |
7.3.11 | 10.000 | 0.000287 | +146% |
7.3.9 | 10.000 | 0.000277 | +141% |
7.3.8 | 10.000 | 0.000269 | +137% |
7.2.34 | 10.000 | 0.000431 | +219% |
7.2.33 | 10.000 | 0.000358 | +182% |
7.2.31 | 10.000 | 0.000362 | +184% |
7.2.30 | 10.000 | 0.000336 | +171% |
7.2.29 | 10.000 | 0.000321 | +163% |
7.2.28 | 10.000 | 0.000300 | +153% |
7.2.27 | 10.000 | 0.000411 | +209% |
7.2.26 | 10.000 | 0.000468 | +238% |
7.2.25 | 10.000 | 0.000311 | +158% |
7.2.24 | 10.000 | 0.000378 | +192% |
7.2.22 | 10.000 | 0.000312 | +159% |
7.2.21 | 10.000 | 0.000290 | +147% |
7.1.33 | 10.000 | 0.000438 | +223% |
7.1.32 | 10.000 | 0.000311 | +158% |
7.1.31 | 10.000 | 0.000287 | +146% |
7.1.0 | 10.000 | 0.001750 | +890% |
7.0.33 | 10.000 | 0.000438 | +223% |
7.0.7 | 10.000 | 0.001729 | +879% |
5.6.40 | 10.000 | 0.000865 | +440% |
5.6.22 | 10.000 | 0.002835 | +1442% |
5.5.36 | 10.000 | 0.002979 | +1515% |
5.4.45 | 10.000 | 0.003112 | +1582% |
5.3.29 | 10.000 | 0.005183 | +2635% |