PregSplitTest

Split a string with preg_split and get the first element


<?php 

$this
->start($loop);

for (
$i 0$i $this->loop; ++$i) {
    
$value preg_split('/\s/''2016-07-01 23:59:59');
    
$value $value[0];
}

return 
$this->end();
PHP Loops Seconds Percent
8.3.9 100.000 0.037949 +188%
8.0.9 100.000 0.026525 +131%
7.3.33 100.000 0.025815 +128%
7.3.31 100.000 0.025688 +127%
7.3.30 100.000 0.027264 +135%
7.3.29 100.000 0.026795 +132%
7.3.28 100.000 0.028848 +143%
7.3.27 100.000 0.034784 +172%
7.3.24 100.000 0.025795 +127%
7.3.23 100.000 0.026546 +131%
7.3.22 100.000 0.027561 +136%
7.3.19 100.000 0.028633 +141%
7.3.18 100.000 0.026579 +131%
7.3.17 100.000 0.029512 +146%
7.3.16 100.000 0.028055 +139%
7.3.15 100.000 0.027691 +137%
7.3.14 100.000 0.031758 +157%
7.3.13 100.000 0.029719 +147%
7.3.12 100.000 0.027181 +134%
7.3.11 100.000 0.024753 +122%
7.3.9 100.000 0.026869 +133%
7.3.8 100.000 0.027434 +136%
7.2.34 100.000 0.031081 +154%
7.2.33 100.000 0.030113 +149%
7.2.31 100.000 0.031105 +154%
7.2.30 100.000 0.028633 +141%
7.2.29 100.000 0.029464 +146%
7.2.28 100.000 0.028963 +143%
7.2.27 100.000 0.034214 +169%
7.2.26 100.000 0.032450 +160%
7.2.25 100.000 0.030200 +149%
7.2.24 100.000 0.027614 +136%
7.2.22 100.000 0.032169 +159%
7.2.21 100.000 0.032831 +162%
7.1.33 100.000 0.035180 +174%
7.1.32 100.000 0.039095 +193%
7.1.31 100.000 0.039768 +197%
7.1.0 100.000 0.186458 +921%
7.0.33 100.000 0.034609 +171%
7.0.7 100.000 0.178851 +884%
5.6.40 100.000 0.125595 +621%
5.6.22 100.000 0.559341 +2764%
5.5.36 100.000 0.580352 +2868%
5.4.45 100.000 0.600108 +2965%
5.3.29 100.000 0.722071 +3568%
8.3.9 10.000 0.003440 +144%
8.0.30 100.000 0.027004 +133%
8.0.29 100.000 0.020238 100%
8.0.28 100.000 0.023375 +116%
8.0.27 100.000 0.025707 +127%
8.0.26 100.000 0.024644 +122%
8.0.25 100.000 0.027116 +134%
8.0.24 100.000 0.024801 +123%
8.0.23 100.000 0.022598 +112%
8.0.20 100.000 0.021669 +107%
8.0.19 100.000 0.029019 +143%
8.0.16 100.000 0.027064 +134%
8.0.17 10.000 0.004203 +176%
8.0.17 100.000 0.028782 +142%
8.0.16 10.000 0.003897 +163%
8.0.14 10.000 0.003936 +165%
8.0.14 100.000 0.028087 +139%
8.0.11 100.000 0.027315 +135%
8.0.10 10.000 0.003677 +154%
8.0.10 100.000 0.025724 +127%
8.0.8 100.000 0.028336 +140%
8.0.7 100.000 0.028730 +142%
8.0.3 100.000 0.034359 +170%
8.0.11 10.000 0.003301 +138%
8.0.2 100.000 0.040833 +202%
8.0.0 100.000 0.026743 +132%
7.4.33 100.000 0.024674 +122%
7.4.30 100.000 0.021591 +107%
7.4.33 10.000 0.002957 +124%
7.4.32 100.000 0.022963 +113%
7.4.29 100.000 0.027114 +134%
7.4.28 100.000 0.028084 +139%
7.4.27 100.000 0.027595 +136%
7.4.24 100.000 0.026822 +133%
7.4.23 100.000 0.026144 +129%
7.4.22 100.000 0.025012 +124%
8.0.0 10.000 0.003483 +146%
7.4.21 10.000 0.003508 +147%
7.4.21 100.000 0.031246 +154%
7.4.20 10.000 0.003879 +162%
7.4.20 100.000 0.028396 +140%
7.4.15 100.000 0.036159 +179%
7.4.12 100.000 0.024345 +120%
7.4.11 100.000 0.026672 +132%
7.4.10 100.000 0.026415 +131%
7.4.7 100.000 0.026519 +131%
8.0.19 10.000 0.003669 +153%
8.0.2 10.000 0.004854 +203%
7.4.32 10.000 0.002810 +117%
7.4.30 10.000 0.002402 100%
7.4.29 10.000 0.003314 +139%
7.4.28 10.000 0.003346 +140%
7.4.27 10.000 0.003243 +136%
7.4.22 10.000 0.003122 +130%
7.4.16 100.000 0.033988 +168%
7.4.13 100.000 0.026222 +130%
7.4.16 10.000 0.004113 +172%
7.4.7 10.000 0.003609 +151%
7.4.0 100.000 0.025960 +128%
8.0.30 10.000 0.003112 +130%
8.0.29 10.000 0.002392 100%
8.0.28 10.000 0.002585 +108%
8.0.27 10.000 0.002788 +117%
8.0.26 10.000 0.003026 +126%
8.0.25 10.000 0.003159 +132%
8.0.24 10.000 0.003434 +144%
8.0.23 10.000 0.003042 +127%
8.0.20 10.000 0.002415 +101%
8.0.9 10.000 0.003412 +143%
8.0.8 10.000 0.003925 +164%
8.0.7 10.000 0.003745 +157%
8.0.3 10.000 0.004097 +171%
7.4.24 10.000 0.003327 +139%
7.4.23 10.000 0.003623 +151%
7.4.15 10.000 0.005063 +212%
7.4.13 10.000 0.003139 +131%
7.4.12 10.000 0.003046 +127%
7.4.11 10.000 0.003706 +155%
7.4.10 10.000 0.003523 +147%
7.4.6 10.000 0.003181 +133%
7.4.6 100.000 0.026350 +130%
7.4.4 10.000 0.003226 +135%
7.4.4 100.000 0.025555 +126%
7.4.5 10.000 0.003534 +148%
7.4.5 100.000 0.027751 +137%
7.4.3 100.000 0.023285 +115%
7.4.2 100.000 0.029526 +146%
7.4.3 10.000 0.003211 +134%
7.4.1 100.000 0.030003 +148%
7.4.2 10.000 0.004021 +168%
7.4.1 10.000 0.003940 +165%
7.4.0 10.000 0.002908 +122%
7.3.33 10.000 0.003132 +131%
7.3.31 10.000 0.003526 +147%
7.3.30 10.000 0.003380 +141%
7.3.29 10.000 0.003632 +152%
7.3.28 10.000 0.003952 +165%
7.3.27 10.000 0.004846 +203%
7.3.24 10.000 0.003553 +149%
7.3.23 10.000 0.004011 +168%
7.3.22 10.000 0.004486 +188%
7.3.19 10.000 0.003878 +162%
7.3.18 10.000 0.003543 +148%
7.3.17 10.000 0.003409 +142%
7.3.16 10.000 0.003370 +141%
7.3.15 10.000 0.002796 +117%
7.3.14 10.000 0.004286 +179%
7.3.13 10.000 0.004096 +171%
7.3.12 10.000 0.003702 +155%
7.3.11 10.000 0.002960 +124%
7.3.9 10.000 0.003151 +132%
7.3.8 10.000 0.002770 +116%
7.2.34 10.000 0.003916 +164%
7.2.33 10.000 0.004155 +174%
7.2.31 10.000 0.004330 +181%
7.2.30 10.000 0.004176 +175%
7.2.29 10.000 0.004224 +177%
7.2.28 10.000 0.004172 +174%
7.2.27 10.000 0.005147 +215%
7.2.26 10.000 0.004446 +186%
7.2.25 10.000 0.004101 +171%
7.2.24 10.000 0.003780 +158%
7.2.22 10.000 0.003832 +160%
7.2.21 10.000 0.003647 +152%
7.1.33 10.000 0.004786 +200%
7.1.32 10.000 0.004133 +173%
7.1.31 10.000 0.004110 +172%
7.1.0 10.000 0.019268 +805%
7.0.33 10.000 0.004612 +193%
7.0.7 10.000 0.018512 +774%
5.6.40 10.000 0.017329 +724%
5.6.22 10.000 0.059239 +2476%
5.5.36 10.000 0.061114 +2555%
5.4.45 10.000 0.063928 +2672%
5.3.29 10.000 0.077500 +3240%