Split a large string with explode (limit) and get the first element
<?php
$text = $this->getTextLarge();
$this->start($loop);
for ($i = 0; $i < $this->loop; ++$i) {
$value = explode(' ', $text, 2);
$value = $value[0];
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.3.13 | 100.000 | 0.030651 | +192% |
8.3.10 | 100.000 | 0.027910 | +175% |
8.3.9 | 100.000 | 0.027439 | +172% |
7.3.33 | 100.000 | 0.021623 | +135% |
7.3.31 | 100.000 | 0.021494 | +134% |
7.3.30 | 100.000 | 0.020975 | +131% |
7.3.29 | 100.000 | 0.021002 | +131% |
7.3.28 | 100.000 | 0.022154 | +139% |
7.3.27 | 100.000 | 0.027626 | +173% |
7.3.24 | 100.000 | 0.019732 | +123% |
7.3.23 | 100.000 | 0.020600 | +129% |
7.3.22 | 100.000 | 0.022106 | +138% |
7.3.19 | 100.000 | 0.022271 | +139% |
7.3.18 | 100.000 | 0.022254 | +139% |
7.3.17 | 100.000 | 0.021837 | +137% |
7.3.16 | 100.000 | 0.020791 | +130% |
7.3.15 | 100.000 | 0.020420 | +128% |
7.3.14 | 100.000 | 0.023683 | +148% |
7.3.13 | 100.000 | 0.025528 | +160% |
7.3.12 | 100.000 | 0.021475 | +134% |
7.3.11 | 100.000 | 0.061596 | +385% |
7.3.9 | 100.000 | 0.093243 | +583% |
7.3.8 | 100.000 | 0.091143 | +570% |
7.2.29 | 100.000 | 0.024864 | +156% |
8.3.13 | 10.000 | 0.004095 | +233% |
7.2.34 | 100.000 | 0.024287 | +152% |
7.2.33 | 100.000 | 0.024837 | +155% |
7.2.31 | 100.000 | 0.024744 | +155% |
7.2.30 | 100.000 | 0.022381 | +140% |
8.3.10 | 10.000 | 0.003282 | +187% |
7.2.28 | 100.000 | 0.024467 | +153% |
7.2.27 | 100.000 | 0.026773 | +168% |
7.2.26 | 100.000 | 0.028116 | +176% |
7.2.25 | 100.000 | 0.024124 | +151% |
7.2.24 | 100.000 | 0.061806 | +387% |
7.2.22 | 100.000 | 0.100780 | +631% |
7.2.21 | 100.000 | 0.096740 | +605% |
7.1.33 | 100.000 | 0.028207 | +176% |
7.1.32 | 100.000 | 0.099597 | +623% |
7.1.31 | 100.000 | 0.099486 | +622% |
7.1.0 | 100.000 | 0.162621 | +1018% |
7.0.33 | 100.000 | 0.031086 | +195% |
7.0.7 | 100.000 | 0.158302 | +991% |
5.6.40 | 100.000 | 0.066691 | +417% |
5.6.22 | 100.000 | 0.358704 | +2244% |
5.5.36 | 100.000 | 0.379129 | +2372% |
5.4.45 | 100.000 | 0.389697 | +2438% |
5.3.29 | 100.000 | 0.431578 | +2700% |
8.3.9 | 10.000 | 0.002966 | +169% |
8.0.30 | 100.000 | 0.024144 | +151% |
8.0.29 | 100.000 | 0.015982 | 100% |
8.0.28 | 100.000 | 0.017530 | +110% |
8.0.27 | 100.000 | 0.020756 | +130% |
8.0.26 | 100.000 | 0.020785 | +130% |
8.0.25 | 100.000 | 0.019407 | +121% |
8.0.24 | 100.000 | 0.019209 | +120% |
8.0.23 | 100.000 | 0.018807 | +118% |
8.0.20 | 10.000 | 0.002017 | +115% |
8.0.20 | 100.000 | 0.017380 | +109% |
8.0.19 | 10.000 | 0.002770 | +158% |
8.0.19 | 100.000 | 0.024108 | +151% |
8.0.17 | 10.000 | 0.002673 | +152% |
8.0.17 | 100.000 | 0.022062 | +138% |
8.0.16 | 10.000 | 0.002683 | +153% |
8.0.16 | 100.000 | 0.022772 | +142% |
8.0.14 | 10.000 | 0.002637 | +150% |
8.0.14 | 100.000 | 0.024218 | +152% |
8.0.11 | 100.000 | 0.019914 | +125% |
8.0.10 | 100.000 | 0.021975 | +137% |
8.0.9 | 100.000 | 0.018042 | +113% |
8.0.8 | 100.000 | 0.020486 | +128% |
8.0.7 | 100.000 | 0.023144 | +145% |
8.0.3 | 100.000 | 0.027496 | +172% |
8.0.2 | 100.000 | 0.031144 | +195% |
8.0.0 | 100.000 | 0.020435 | +128% |
7.4.33 | 100.000 | 0.021400 | +134% |
7.4.32 | 100.000 | 0.021053 | +132% |
7.4.30 | 100.000 | 0.018207 | +114% |
7.4.28 | 100.000 | 0.023019 | +144% |
7.4.27 | 100.000 | 0.022698 | +142% |
7.4.24 | 100.000 | 0.020682 | +129% |
7.4.23 | 100.000 | 0.021351 | +134% |
7.4.22 | 100.000 | 0.019060 | +119% |
8.0.11 | 10.000 | 0.002609 | +148% |
8.0.10 | 10.000 | 0.002534 | +144% |
8.0.0 | 10.000 | 0.002273 | +129% |
7.4.29 | 100.000 | 0.022593 | +141% |
7.4.21 | 10.000 | 0.002941 | +167% |
7.4.21 | 100.000 | 0.024338 | +152% |
7.4.20 | 10.000 | 0.002378 | +135% |
7.4.20 | 100.000 | 0.023489 | +147% |
7.4.16 | 100.000 | 0.026559 | +166% |
7.4.15 | 100.000 | 0.031807 | +199% |
7.4.33 | 10.000 | 0.002358 | +134% |
7.4.32 | 10.000 | 0.002718 | +155% |
7.4.30 | 10.000 | 0.002143 | +122% |
7.4.29 | 10.000 | 0.002991 | +170% |
7.4.24 | 10.000 | 0.002254 | +128% |
7.4.23 | 10.000 | 0.002186 | +124% |
7.4.22 | 10.000 | 0.002475 | +141% |
7.4.13 | 100.000 | 0.020381 | +128% |
7.4.12 | 100.000 | 0.019452 | +122% |
7.4.11 | 100.000 | 0.019785 | +124% |
7.4.10 | 100.000 | 0.020754 | +130% |
8.0.2 | 10.000 | 0.003187 | +181% |
7.4.0 | 100.000 | 0.072901 | +456% |
8.0.30 | 10.000 | 0.002742 | +156% |
8.0.29 | 10.000 | 0.001758 | 100% |
8.0.28 | 10.000 | 0.001942 | +110% |
8.0.27 | 10.000 | 0.002286 | +130% |
8.0.26 | 10.000 | 0.002107 | +120% |
8.0.25 | 10.000 | 0.002244 | +128% |
8.0.24 | 10.000 | 0.002540 | +144% |
8.0.23 | 10.000 | 0.002051 | +117% |
8.0.9 | 10.000 | 0.002549 | +145% |
8.0.8 | 10.000 | 0.002399 | +136% |
8.0.7 | 10.000 | 0.002554 | +145% |
8.0.3 | 10.000 | 0.003351 | +191% |
7.4.28 | 10.000 | 0.002414 | +137% |
7.4.27 | 10.000 | 0.002536 | +144% |
7.4.16 | 10.000 | 0.003210 | +183% |
7.4.15 | 10.000 | 0.003398 | +193% |
7.4.13 | 10.000 | 0.002298 | +131% |
7.4.12 | 10.000 | 0.002100 | +119% |
7.4.11 | 10.000 | 0.002410 | +137% |
7.4.10 | 10.000 | 0.002156 | +123% |
7.4.7 | 10.000 | 0.002510 | +143% |
7.4.7 | 100.000 | 0.020586 | +129% |
7.4.6 | 10.000 | 0.002387 | +136% |
7.4.6 | 100.000 | 0.020647 | +129% |
7.4.5 | 10.000 | 0.002117 | +120% |
7.4.5 | 100.000 | 0.022581 | +141% |
7.4.4 | 10.000 | 0.002801 | +159% |
7.4.4 | 100.000 | 0.020099 | +126% |
7.4.3 | 10.000 | 0.002350 | +134% |
7.4.3 | 100.000 | 0.023244 | +145% |
7.4.1 | 100.000 | 0.025140 | +157% |
7.4.2 | 10.000 | 0.002890 | +164% |
7.4.2 | 100.000 | 0.024027 | +150% |
7.4.1 | 10.000 | 0.003167 | +180% |
7.4.0 | 10.000 | 0.007876 | +448% |
7.3.33 | 10.000 | 0.002434 | +138% |
7.3.31 | 10.000 | 0.002569 | +146% |
7.3.30 | 10.000 | 0.002379 | +135% |
7.3.29 | 10.000 | 0.002449 | +139% |
7.3.28 | 10.000 | 0.002705 | +154% |
7.3.27 | 10.000 | 0.003153 | +179% |
7.3.24 | 10.000 | 0.002396 | +136% |
7.3.23 | 10.000 | 0.002836 | +161% |
7.3.22 | 10.000 | 0.002711 | +154% |
7.3.19 | 10.000 | 0.002688 | +153% |
7.3.18 | 10.000 | 0.002668 | +152% |
7.3.17 | 10.000 | 0.002134 | +121% |
7.3.16 | 10.000 | 0.001955 | +111% |
7.3.15 | 10.000 | 0.002683 | +153% |
7.3.14 | 10.000 | 0.002920 | +166% |
7.3.13 | 10.000 | 0.002773 | +158% |
7.3.12 | 10.000 | 0.003011 | +171% |
7.3.11 | 10.000 | 0.006506 | +370% |
7.3.9 | 10.000 | 0.010120 | +576% |
7.3.8 | 10.000 | 0.009335 | +531% |
7.2.34 | 10.000 | 0.002838 | +161% |
7.2.33 | 10.000 | 0.003742 | +213% |
7.2.31 | 10.000 | 0.003108 | +177% |
7.2.30 | 10.000 | 0.002681 | +152% |
7.2.29 | 10.000 | 0.002851 | +162% |
7.2.28 | 10.000 | 0.002468 | +140% |
7.2.27 | 10.000 | 0.003874 | +220% |
7.2.26 | 10.000 | 0.003336 | +190% |
7.2.25 | 10.000 | 0.002727 | +155% |
7.2.24 | 10.000 | 0.006565 | +373% |
7.2.22 | 10.000 | 0.010498 | +597% |
7.2.21 | 10.000 | 0.009515 | +541% |
7.1.33 | 10.000 | 0.003547 | +202% |
7.1.32 | 10.000 | 0.010556 | +600% |
7.1.31 | 10.000 | 0.010111 | +575% |
7.1.0 | 10.000 | 0.016933 | +963% |
7.0.33 | 10.000 | 0.003938 | +224% |
7.0.7 | 10.000 | 0.016238 | +924% |
5.6.40 | 10.000 | 0.009211 | +524% |
5.6.22 | 10.000 | 0.037667 | +2142% |
5.5.36 | 10.000 | 0.039563 | +2250% |
5.4.45 | 10.000 | 0.040261 | +2290% |
5.3.29 | 10.000 | 0.044071 | +2507% |