PregSplitLargeTest

Split a large string with preg_split and get the first element


<?php 

$text 
$this->getTextLarge();

$this->start($loop);

for (
$i 0$i $this->loop; ++$i) {
    
$value preg_split('/\s/'$text);
    
$value $value[0];
}

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 4.027092 +183%
8.3.10 100.000 3.382465 +154%
8.3.9 100.000 3.256570 +148%
7.3.33 100.000 2.975773 +135%
7.3.31 100.000 2.704777 +123%
7.3.30 100.000 2.708395 +123%
7.3.29 100.000 2.765040 +126%
7.3.28 100.000 2.613560 +119%
7.3.27 100.000 3.119637 +142%
7.3.24 100.000 2.826253 +128%
7.3.23 100.000 2.940298 +134%
7.3.22 100.000 2.940155 +134%
7.3.19 100.000 2.965446 +135%
7.3.18 100.000 2.619579 +119%
7.3.17 100.000 2.627411 +119%
7.3.16 100.000 2.511438 +114%
7.3.15 100.000 2.591387 +118%
7.3.14 100.000 2.779851 +126%
7.3.13 100.000 2.603470 +118%
7.3.12 100.000 2.487957 +113%
7.3.11 100.000 3.373993 +153%
7.3.9 100.000 4.194772 +190%
7.3.8 100.000 4.030157 +183%
7.2.29 100.000 2.566402 +117%
8.3.13 10.000 0.426998 +189%
7.2.34 100.000 3.208010 +146%
7.2.33 100.000 3.141585 +143%
7.2.31 100.000 2.966936 +135%
7.2.30 100.000 2.681027 +122%
8.3.10 10.000 0.360459 +160%
7.2.28 100.000 2.568214 +117%
7.2.27 100.000 2.689289 +122%
7.2.26 100.000 2.657825 +121%
7.2.25 100.000 2.524871 +115%
7.2.24 100.000 3.255735 +148%
7.2.22 100.000 3.940182 +179%
7.2.21 100.000 3.865008 +176%
7.1.33 100.000 3.754286 +170%
7.1.32 100.000 4.792849 +218%
7.1.31 100.000 4.724028 +215%
7.1.0 100.000 17.948386 +815%
7.0.33 100.000 3.954418 +180%
7.0.7 100.000 17.219428 +782%
5.6.40 100.000 20.437796 +928%
5.6.22 100.000 83.611952 +3797%
5.5.36 100.000 78.924322 +3584%
5.4.45 100.000 82.409838 +3742%
5.3.29 100.000 87.592332 +3978%
8.3.9 10.000 0.343197 +152%
8.0.30 100.000 2.946807 +134%
8.0.29 100.000 2.373292 +108%
8.0.28 100.000 2.309198 +105%
8.0.27 100.000 2.396342 +109%
8.0.26 100.000 2.631227 +119%
8.0.25 100.000 2.434984 +111%
8.0.24 100.000 2.429839 +110%
8.0.23 100.000 2.346503 +107%
8.0.20 10.000 0.233720 +104%
8.0.20 100.000 2.287389 +104%
8.0.19 10.000 0.254625 +113%
8.0.19 100.000 2.393451 +109%
8.0.17 10.000 0.253794 +113%
8.0.17 100.000 2.323379 +106%
8.0.16 10.000 0.281911 +125%
8.0.16 100.000 2.387394 +108%
8.0.14 10.000 0.259299 +115%
8.0.14 100.000 2.437116 +111%
8.0.11 100.000 2.494442 +113%
8.0.10 100.000 2.268911 +103%
8.0.9 100.000 2.419907 +110%
8.0.8 100.000 2.466967 +112%
8.0.7 100.000 2.299714 +104%
8.0.3 100.000 2.785283 +126%
8.0.2 100.000 3.146149 +143%
8.0.0 100.000 2.485157 +113%
7.4.33 100.000 2.654760 +121%
7.4.32 100.000 2.263987 +103%
7.4.30 100.000 2.265428 +103%
7.4.28 100.000 2.346770 +107%
7.4.27 100.000 2.425729 +110%
7.4.24 100.000 2.289003 +104%
7.4.23 100.000 2.215825 +101%
7.4.22 100.000 2.227617 +101%
8.0.11 10.000 0.247225 +110%
8.0.10 10.000 0.239901 +106%
8.0.0 10.000 0.257867 +114%
7.4.29 100.000 2.250482 +102%
7.4.21 10.000 0.228835 +102%
7.4.21 100.000 2.202132 100%
7.4.20 10.000 0.226791 +101%
7.4.20 100.000 2.240041 +102%
7.4.16 100.000 2.585098 +117%
7.4.15 100.000 3.037790 +138%
7.4.33 10.000 0.275375 +122%
7.4.32 10.000 0.230917 +102%
7.4.30 10.000 0.230485 +102%
7.4.29 10.000 0.232942 +103%
7.4.24 10.000 0.247948 +110%
7.4.23 10.000 0.244991 +109%
7.4.22 10.000 0.232342 +103%
7.4.13 100.000 2.373508 +108%
7.4.12 100.000 2.662967 +121%
7.4.11 100.000 2.465398 +112%
7.4.10 100.000 2.418464 +110%
8.0.2 10.000 0.373303 +166%
7.4.0 100.000 3.308685 +150%
8.0.30 10.000 0.306739 +136%
8.0.29 10.000 0.249451 +111%
8.0.28 10.000 0.238038 +106%
8.0.27 10.000 0.249131 +111%
8.0.26 10.000 0.266503 +118%
8.0.25 10.000 0.249386 +111%
8.0.24 10.000 0.250534 +111%
8.0.23 10.000 0.250952 +111%
8.0.9 10.000 0.241393 +107%
8.0.8 10.000 0.270318 +120%
8.0.7 10.000 0.282317 +125%
8.0.3 10.000 0.307752 +137%
7.4.28 10.000 0.245991 +109%
7.4.27 10.000 0.256616 +114%
7.4.16 10.000 0.294038 +130%
7.4.15 10.000 0.337445 +150%
7.4.13 10.000 0.252503 +112%
7.4.12 10.000 0.289510 +128%
7.4.11 10.000 0.266938 +118%
7.4.10 10.000 0.245249 +109%
7.4.7 10.000 0.253159 +112%
7.4.7 100.000 2.445008 +111%
7.4.6 10.000 0.235193 +104%
7.4.6 100.000 2.311965 +105%
7.4.5 10.000 0.238210 +106%
7.4.5 100.000 2.301938 +105%
7.4.4 10.000 0.230773 +102%
7.4.4 100.000 2.236948 +102%
7.4.3 10.000 0.225355 100%
7.4.3 100.000 2.292077 +104%
7.4.1 100.000 2.272917 +103%
7.4.2 10.000 0.239249 +106%
7.4.2 100.000 2.383197 +108%
7.4.1 10.000 0.234781 +104%
7.4.0 10.000 0.354824 +157%
7.3.33 10.000 0.305471 +136%
7.3.31 10.000 0.279149 +124%
7.3.30 10.000 0.275078 +122%
7.3.29 10.000 0.272019 +121%
7.3.28 10.000 0.284257 +126%
7.3.27 10.000 0.338214 +150%
7.3.24 10.000 0.284818 +126%
7.3.23 10.000 0.307324 +136%
7.3.22 10.000 0.304235 +135%
7.3.19 10.000 0.302494 +134%
7.3.18 10.000 0.272963 +121%
7.3.17 10.000 0.276669 +123%
7.3.16 10.000 0.268559 +119%
7.3.15 10.000 0.271406 +120%
7.3.14 10.000 0.280097 +124%
7.3.13 10.000 0.272977 +121%
7.3.12 10.000 0.245478 +109%
7.3.11 10.000 0.356683 +158%
7.3.9 10.000 0.478887 +213%
7.3.8 10.000 0.420660 +187%
7.2.34 10.000 0.329870 +146%
7.2.33 10.000 0.317440 +141%
7.2.31 10.000 0.301500 +134%
7.2.30 10.000 0.282052 +125%
7.2.29 10.000 0.266207 +118%
7.2.28 10.000 0.262171 +116%
7.2.27 10.000 0.282609 +125%
7.2.26 10.000 0.277917 +123%
7.2.25 10.000 0.257800 +114%
7.2.24 10.000 0.330085 +146%
7.2.22 10.000 0.443241 +197%
7.2.21 10.000 0.402492 +179%
7.1.33 10.000 0.387652 +172%
7.1.32 10.000 0.524684 +233%
7.1.31 10.000 0.483558 +215%
7.1.0 10.000 1.812700 +804%
7.0.33 10.000 0.403924 +179%
7.0.7 10.000 1.743074 +773%
5.6.40 10.000 2.039462 +905%
5.6.22 10.000 8.375879 +3717%
5.5.36 10.000 7.899044 +3505%
5.4.45 10.000 8.195785 +3637%
5.3.29 10.000 8.787018 +3899%