3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function starts_with_strpos($haystack, $needle) { return strpos($haystack, $needle) === 0; } function starts_with_substr($haystack, $needle) { return substr($haystack, 0, strlen($needle)) === $needle; } // setup the haystack and needle $haystack = "Hello PHP"; $needle = "Hello"; // initialize the results array $results = array('substr' => array(), 'strpos' => array(), 'strpos_without_function' => array()); // exhaust the gc's threshhold at 10K $it = 10000; // Run the substr benchmark for($i = 0; $i < $it; $i++) { $t = microtime(true); starts_with_substr($haystack, $needle); $results['substr'][] = microtime(true) - $t; } // discard the first and last results as opline biased array_pop($results['substr']); array_shift($results['substr']); // Run the strpos benchmark for($i = 0; $i < $it; $i++) { $t = microtime(true); starts_with_strpos($haystack, $needle); $results['strpos'][] = microtime(true) - $t; } // discard the first and last results as opline biased array_pop($results['strpos']); array_shift($results['strpos']); // Run the strpos without a wrapper function benchmark for($i = 0; $i < $it; $i++) { $t = microtime(true); $x = strpos($haystack, $needle) === 0; $results['strpos_without_function'][] = microtime(true) - $t; } // discard the first and last results as opline biased array_pop($results['strpos_without_function']); array_shift($results['strpos_without_function']); // compare the results $a = array_sum($results['substr']) / $it; $b = array_sum($results['strpos']) / $it; $c = array_sum($results['strpos_without_function']) / $it; printf("substr: %.9fs/iteration @ %d iterations\nstrpos: %.9fs/iteration @ %d iterations\nstrpos (without wrapper): %.9fs/iteration @ %d iterations\n\n", $a, $it, $b, $it, $c, $it); // determine which is faster (substr or strpos) if ($a > $b) { // substr is slower printf("strpos is %d%% faster than substr\n", $b / $a * 100); } elseif ($b > $a) { // strpos is slower printf("substr is %d%% faster than strpos\n", $a / $b * 100); } else { // they're the same printf("strpos and substr are the same\n"); } // determine which is faster (strpos with a wrapper or without) if ($b > $c) { // strpos wrapper is slower printf("strpos without a wrapper function is %d%% faster than strpos with a wrapper function\n", $c / $b * 100); } elseif ($c > $b) { // strpos wrapper is faster printf("strpos with a wrapper function is %d%% faster than strpos without a wrapper fucntion\n", $b / $c * 100); } else { // they're the same printf("strpos and substr are the same\n"); }
Output for 7.1.0
substr: 0.000000241s/iteration @ 10000 iterations strpos: 0.000000239s/iteration @ 10000 iterations strpos (without wrapper): 0.000000192s/iteration @ 10000 iterations strpos is 99% faster than substr strpos without a wrapper function is 80% faster than strpos with a wrapper function
Output for 7.0.14
substr: 0.000000288s/iteration @ 10000 iterations strpos: 0.000000267s/iteration @ 10000 iterations strpos (without wrapper): 0.000000198s/iteration @ 10000 iterations strpos is 92% faster than substr strpos without a wrapper function is 74% faster than strpos with a wrapper function
Output for 7.0.6
substr: 0.000000186s/iteration @ 10000 iterations strpos: 0.000000161s/iteration @ 10000 iterations strpos (without wrapper): 0.000000139s/iteration @ 10000 iterations strpos is 86% faster than substr strpos without a wrapper function is 86% faster than strpos with a wrapper function
Output for 7.0.5
substr: 0.000000192s/iteration @ 10000 iterations strpos: 0.000000164s/iteration @ 10000 iterations strpos (without wrapper): 0.000000137s/iteration @ 10000 iterations strpos is 85% faster than substr strpos without a wrapper function is 83% faster than strpos with a wrapper function
Output for 7.0.4
substr: 0.000000209s/iteration @ 10000 iterations strpos: 0.000000170s/iteration @ 10000 iterations strpos (without wrapper): 0.000000152s/iteration @ 10000 iterations strpos is 81% faster than substr strpos without a wrapper function is 89% faster than strpos with a wrapper function
Output for 7.0.3
substr: 0.000000181s/iteration @ 10000 iterations strpos: 0.000000165s/iteration @ 10000 iterations strpos (without wrapper): 0.000000140s/iteration @ 10000 iterations strpos is 90% faster than substr strpos without a wrapper function is 85% faster than strpos with a wrapper function
Output for 7.0.2
substr: 0.000000131s/iteration @ 10000 iterations strpos: 0.000000118s/iteration @ 10000 iterations strpos (without wrapper): 0.000000099s/iteration @ 10000 iterations strpos is 89% faster than substr strpos without a wrapper function is 83% faster than strpos with a wrapper function
Output for 7.0.1
substr: 0.000000186s/iteration @ 10000 iterations strpos: 0.000000172s/iteration @ 10000 iterations strpos (without wrapper): 0.000000137s/iteration @ 10000 iterations strpos is 92% faster than substr strpos without a wrapper function is 79% faster than strpos with a wrapper function
Output for 7.0.0
substr: 0.000000151s/iteration @ 10000 iterations strpos: 0.000000125s/iteration @ 10000 iterations strpos (without wrapper): 0.000000109s/iteration @ 10000 iterations strpos is 83% faster than substr strpos without a wrapper function is 87% faster than strpos with a wrapper function
Output for hhvm-3.12.0
substr: 0.000000343s/iteration @ 10000 iterations strpos: 0.000000280s/iteration @ 10000 iterations strpos (without wrapper): 0.000000195s/iteration @ 10000 iterations strpos is 81% faster than substr strpos without a wrapper function is 69% faster than strpos with a wrapper function
Output for hhvm-3.10.0
substr: 0.000000355s/iteration @ 10000 iterations strpos: 0.000000295s/iteration @ 10000 iterations strpos (without wrapper): 0.000000179s/iteration @ 10000 iterations strpos is 83% faster than substr strpos without a wrapper function is 60% faster than strpos with a wrapper function
Output for 5.6.28
substr: 0.000000692s/iteration @ 10000 iterations strpos: 0.000000481s/iteration @ 10000 iterations strpos (without wrapper): 0.000000357s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 74% faster than strpos with a wrapper function
Output for 5.6.21
substr: 0.000000382s/iteration @ 10000 iterations strpos: 0.000000277s/iteration @ 10000 iterations strpos (without wrapper): 0.000000191s/iteration @ 10000 iterations strpos is 72% faster than substr strpos without a wrapper function is 69% faster than strpos with a wrapper function
Output for 5.6.20
substr: 0.000000379s/iteration @ 10000 iterations strpos: 0.000000259s/iteration @ 10000 iterations strpos (without wrapper): 0.000000185s/iteration @ 10000 iterations strpos is 68% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.6.19
substr: 0.000000456s/iteration @ 10000 iterations strpos: 0.000000317s/iteration @ 10000 iterations strpos (without wrapper): 0.000000223s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 70% faster than strpos with a wrapper function
Output for 5.6.18
substr: 0.000000370s/iteration @ 10000 iterations strpos: 0.000000262s/iteration @ 10000 iterations strpos (without wrapper): 0.000000192s/iteration @ 10000 iterations strpos is 70% faster than substr strpos without a wrapper function is 73% faster than strpos with a wrapper function
Output for 5.6.17
substr: 0.000000378s/iteration @ 10000 iterations strpos: 0.000000267s/iteration @ 10000 iterations strpos (without wrapper): 0.000000193s/iteration @ 10000 iterations strpos is 70% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.6.16
substr: 0.000000601s/iteration @ 10000 iterations strpos: 0.000000398s/iteration @ 10000 iterations strpos (without wrapper): 0.000000275s/iteration @ 10000 iterations strpos is 66% faster than substr strpos without a wrapper function is 69% faster than strpos with a wrapper function
Output for 5.6.15
substr: 0.000000392s/iteration @ 10000 iterations strpos: 0.000000265s/iteration @ 10000 iterations strpos (without wrapper): 0.000000193s/iteration @ 10000 iterations strpos is 67% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.6.14
substr: 0.000000576s/iteration @ 10000 iterations strpos: 0.000000385s/iteration @ 10000 iterations strpos (without wrapper): 0.000000282s/iteration @ 10000 iterations strpos is 66% faster than substr strpos without a wrapper function is 73% faster than strpos with a wrapper function
Output for 5.6.13
substr: 0.000000489s/iteration @ 10000 iterations strpos: 0.000000344s/iteration @ 10000 iterations strpos (without wrapper): 0.000000249s/iteration @ 10000 iterations strpos is 70% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.6.12
substr: 0.000000377s/iteration @ 10000 iterations strpos: 0.000000263s/iteration @ 10000 iterations strpos (without wrapper): 0.000000191s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.6.11
substr: 0.000000381s/iteration @ 10000 iterations strpos: 0.000000274s/iteration @ 10000 iterations strpos (without wrapper): 0.000000192s/iteration @ 10000 iterations strpos is 71% faster than substr strpos without a wrapper function is 70% faster than strpos with a wrapper function
Output for 5.6.10
substr: 0.000000596s/iteration @ 10000 iterations strpos: 0.000000417s/iteration @ 10000 iterations strpos (without wrapper): 0.000000275s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 66% faster than strpos with a wrapper function
Output for 5.6.9
substr: 0.000000357s/iteration @ 10000 iterations strpos: 0.000000265s/iteration @ 10000 iterations strpos (without wrapper): 0.000000184s/iteration @ 10000 iterations strpos is 74% faster than substr strpos without a wrapper function is 69% faster than strpos with a wrapper function
Output for 5.6.8
substr: 0.000000361s/iteration @ 10000 iterations strpos: 0.000000261s/iteration @ 10000 iterations strpos (without wrapper): 0.000000187s/iteration @ 10000 iterations strpos is 72% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.6.7
substr: 0.000000447s/iteration @ 10000 iterations strpos: 0.000000326s/iteration @ 10000 iterations strpos (without wrapper): 0.000000201s/iteration @ 10000 iterations strpos is 72% faster than substr strpos without a wrapper function is 61% faster than strpos with a wrapper function
Output for 5.5.35
substr: 0.000000490s/iteration @ 10000 iterations strpos: 0.000000331s/iteration @ 10000 iterations strpos (without wrapper): 0.000000239s/iteration @ 10000 iterations strpos is 67% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.5.34
substr: 0.000000401s/iteration @ 10000 iterations strpos: 0.000000278s/iteration @ 10000 iterations strpos (without wrapper): 0.000000208s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 74% faster than strpos with a wrapper function
Output for 5.5.33
substr: 0.000000544s/iteration @ 10000 iterations strpos: 0.000000362s/iteration @ 10000 iterations strpos (without wrapper): 0.000000258s/iteration @ 10000 iterations strpos is 66% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.5.32
substr: 0.000000405s/iteration @ 10000 iterations strpos: 0.000000278s/iteration @ 10000 iterations strpos (without wrapper): 0.000000214s/iteration @ 10000 iterations strpos is 68% faster than substr strpos without a wrapper function is 77% faster than strpos with a wrapper function
Output for 5.5.31
substr: 0.000000485s/iteration @ 10000 iterations strpos: 0.000000313s/iteration @ 10000 iterations strpos (without wrapper): 0.000000226s/iteration @ 10000 iterations strpos is 64% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.5.30
substr: 0.000000637s/iteration @ 10000 iterations strpos: 0.000000431s/iteration @ 10000 iterations strpos (without wrapper): 0.000000309s/iteration @ 10000 iterations strpos is 67% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.5.29
substr: 0.000000536s/iteration @ 10000 iterations strpos: 0.000000370s/iteration @ 10000 iterations strpos (without wrapper): 0.000000284s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 76% faster than strpos with a wrapper function
Output for 5.5.28
substr: 0.000000618s/iteration @ 10000 iterations strpos: 0.000000411s/iteration @ 10000 iterations strpos (without wrapper): 0.000000292s/iteration @ 10000 iterations strpos is 66% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.5.27
substr: 0.000000469s/iteration @ 10000 iterations strpos: 0.000000312s/iteration @ 10000 iterations strpos (without wrapper): 0.000000227s/iteration @ 10000 iterations strpos is 66% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.5.26
substr: 0.000000581s/iteration @ 10000 iterations strpos: 0.000000371s/iteration @ 10000 iterations strpos (without wrapper): 0.000000274s/iteration @ 10000 iterations strpos is 63% faster than substr strpos without a wrapper function is 74% faster than strpos with a wrapper function
Output for 5.5.25
substr: 0.000000445s/iteration @ 10000 iterations strpos: 0.000000290s/iteration @ 10000 iterations strpos (without wrapper): 0.000000222s/iteration @ 10000 iterations strpos is 65% faster than substr strpos without a wrapper function is 76% faster than strpos with a wrapper function
Output for 5.5.24
substr: 0.000000653s/iteration @ 10000 iterations strpos: 0.000000426s/iteration @ 10000 iterations strpos (without wrapper): 0.000000307s/iteration @ 10000 iterations strpos is 65% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.4.45
substr: 0.000000769s/iteration @ 10000 iterations strpos: 0.000000500s/iteration @ 10000 iterations strpos (without wrapper): 0.000000397s/iteration @ 10000 iterations strpos is 64% faster than substr strpos without a wrapper function is 79% faster than strpos with a wrapper function
Output for 5.4.44
substr: 0.000000789s/iteration @ 10000 iterations strpos: 0.000000506s/iteration @ 10000 iterations strpos (without wrapper): 0.000000396s/iteration @ 10000 iterations strpos is 64% faster than substr strpos without a wrapper function is 78% faster than strpos with a wrapper function
Output for 5.4.43
substr: 0.000000707s/iteration @ 10000 iterations strpos: 0.000000593s/iteration @ 10000 iterations strpos (without wrapper): 0.000000360s/iteration @ 10000 iterations strpos is 83% faster than substr strpos without a wrapper function is 60% faster than strpos with a wrapper function
Output for 5.4.42
substr: 0.000001316s/iteration @ 10000 iterations strpos: 0.000000807s/iteration @ 10000 iterations strpos (without wrapper): 0.000000597s/iteration @ 10000 iterations strpos is 61% faster than substr strpos without a wrapper function is 73% faster than strpos with a wrapper function
Output for 5.4.41
substr: 0.000000854s/iteration @ 10000 iterations strpos: 0.000000653s/iteration @ 10000 iterations strpos (without wrapper): 0.000000601s/iteration @ 10000 iterations strpos is 76% faster than substr strpos without a wrapper function is 91% faster than strpos with a wrapper function
Output for 5.4.40
substr: 0.000001380s/iteration @ 10000 iterations strpos: 0.000000666s/iteration @ 10000 iterations strpos (without wrapper): 0.000000346s/iteration @ 10000 iterations strpos is 48% faster than substr strpos without a wrapper function is 51% faster than strpos with a wrapper function
Output for 5.4.39
substr: 0.000000707s/iteration @ 10000 iterations strpos: 0.000000524s/iteration @ 10000 iterations strpos (without wrapper): 0.000000375s/iteration @ 10000 iterations strpos is 74% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.4.38
substr: 0.000000767s/iteration @ 10000 iterations strpos: 0.000000511s/iteration @ 10000 iterations strpos (without wrapper): 0.000000383s/iteration @ 10000 iterations strpos is 66% faster than substr strpos without a wrapper function is 75% faster than strpos with a wrapper function
Output for 5.4.37
substr: 0.000001247s/iteration @ 10000 iterations strpos: 0.000000456s/iteration @ 10000 iterations strpos (without wrapper): 0.000000427s/iteration @ 10000 iterations strpos is 36% faster than substr strpos without a wrapper function is 93% faster than strpos with a wrapper function
Output for 5.4.36
substr: 0.000003393s/iteration @ 10000 iterations strpos: 0.000000847s/iteration @ 10000 iterations strpos (without wrapper): 0.000000880s/iteration @ 10000 iterations strpos is 24% faster than substr strpos with a wrapper function is 96% faster than strpos without a wrapper fucntion
Output for 5.4.35
substr: 0.000002584s/iteration @ 10000 iterations strpos: 0.000000808s/iteration @ 10000 iterations strpos (without wrapper): 0.000000615s/iteration @ 10000 iterations strpos is 31% faster than substr strpos without a wrapper function is 76% faster than strpos with a wrapper function
Output for 5.4.34
substr: 0.000000822s/iteration @ 10000 iterations strpos: 0.000000565s/iteration @ 10000 iterations strpos (without wrapper): 0.000000398s/iteration @ 10000 iterations strpos is 68% faster than substr strpos without a wrapper function is 70% faster than strpos with a wrapper function
Output for 5.4.32
substr: 0.000000669s/iteration @ 10000 iterations strpos: 0.000000439s/iteration @ 10000 iterations strpos (without wrapper): 0.000000333s/iteration @ 10000 iterations strpos is 65% faster than substr strpos without a wrapper function is 75% faster than strpos with a wrapper function
Output for 5.4.31
substr: 0.000000638s/iteration @ 10000 iterations strpos: 0.000000468s/iteration @ 10000 iterations strpos (without wrapper): 0.000000337s/iteration @ 10000 iterations strpos is 73% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.4.30
substr: 0.000000605s/iteration @ 10000 iterations strpos: 0.000000446s/iteration @ 10000 iterations strpos (without wrapper): 0.000000367s/iteration @ 10000 iterations strpos is 73% faster than substr strpos without a wrapper function is 82% faster than strpos with a wrapper function
Output for 5.4.29
substr: 0.000000849s/iteration @ 10000 iterations strpos: 0.000000649s/iteration @ 10000 iterations strpos (without wrapper): 0.000000444s/iteration @ 10000 iterations strpos is 76% faster than substr strpos without a wrapper function is 68% faster than strpos with a wrapper function
Output for 5.4.28
substr: 0.000001148s/iteration @ 10000 iterations strpos: 0.000000800s/iteration @ 10000 iterations strpos (without wrapper): 0.000000623s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 77% faster than strpos with a wrapper function
Output for 5.4.27
substr: 0.000000765s/iteration @ 10000 iterations strpos: 0.000000508s/iteration @ 10000 iterations strpos (without wrapper): 0.000000400s/iteration @ 10000 iterations strpos is 66% faster than substr strpos without a wrapper function is 78% faster than strpos with a wrapper function
Output for 5.4.26
substr: 0.000000841s/iteration @ 10000 iterations strpos: 0.000000673s/iteration @ 10000 iterations strpos (without wrapper): 0.000000413s/iteration @ 10000 iterations strpos is 80% faster than substr strpos without a wrapper function is 61% faster than strpos with a wrapper function
Output for 5.4.25
substr: 0.000001089s/iteration @ 10000 iterations strpos: 0.000000851s/iteration @ 10000 iterations strpos (without wrapper): 0.000000724s/iteration @ 10000 iterations strpos is 78% faster than substr strpos without a wrapper function is 85% faster than strpos with a wrapper function
Output for 5.4.24
substr: 0.000000952s/iteration @ 10000 iterations strpos: 0.000000413s/iteration @ 10000 iterations strpos (without wrapper): 0.000000321s/iteration @ 10000 iterations strpos is 43% faster than substr strpos without a wrapper function is 77% faster than strpos with a wrapper function
Output for 5.4.23
substr: 0.000000699s/iteration @ 10000 iterations strpos: 0.000000571s/iteration @ 10000 iterations strpos (without wrapper): 0.000000658s/iteration @ 10000 iterations strpos is 81% faster than substr strpos with a wrapper function is 86% faster than strpos without a wrapper fucntion
Output for 5.4.22
substr: 0.000000720s/iteration @ 10000 iterations strpos: 0.000000508s/iteration @ 10000 iterations strpos (without wrapper): 0.000000478s/iteration @ 10000 iterations strpos is 70% faster than substr strpos without a wrapper function is 94% faster than strpos with a wrapper function
Output for 5.4.21
substr: 0.000001046s/iteration @ 10000 iterations strpos: 0.000000776s/iteration @ 10000 iterations strpos (without wrapper): 0.000000455s/iteration @ 10000 iterations strpos is 74% faster than substr strpos without a wrapper function is 58% faster than strpos with a wrapper function
Output for 5.4.20
substr: 0.000000892s/iteration @ 10000 iterations strpos: 0.000000799s/iteration @ 10000 iterations strpos (without wrapper): 0.000000654s/iteration @ 10000 iterations strpos is 89% faster than substr strpos without a wrapper function is 81% faster than strpos with a wrapper function
Output for 5.4.19
substr: 0.000000794s/iteration @ 10000 iterations strpos: 0.000000571s/iteration @ 10000 iterations strpos (without wrapper): 0.000000377s/iteration @ 10000 iterations strpos is 71% faster than substr strpos without a wrapper function is 65% faster than strpos with a wrapper function
Output for 5.4.18
substr: 0.000001154s/iteration @ 10000 iterations strpos: 0.000000805s/iteration @ 10000 iterations strpos (without wrapper): 0.000000626s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 77% faster than strpos with a wrapper function
Output for 5.4.17
substr: 0.000000944s/iteration @ 10000 iterations strpos: 0.000000635s/iteration @ 10000 iterations strpos (without wrapper): 0.000000469s/iteration @ 10000 iterations strpos is 67% faster than substr strpos without a wrapper function is 73% faster than strpos with a wrapper function
Output for 5.4.16
substr: 0.000001057s/iteration @ 10000 iterations strpos: 0.000000815s/iteration @ 10000 iterations strpos (without wrapper): 0.000000641s/iteration @ 10000 iterations strpos is 77% faster than substr strpos without a wrapper function is 78% faster than strpos with a wrapper function
Output for 5.4.15
substr: 0.000000870s/iteration @ 10000 iterations strpos: 0.000000669s/iteration @ 10000 iterations strpos (without wrapper): 0.000000477s/iteration @ 10000 iterations strpos is 76% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.4.14
substr: 0.000000930s/iteration @ 10000 iterations strpos: 0.000000818s/iteration @ 10000 iterations strpos (without wrapper): 0.000000729s/iteration @ 10000 iterations strpos is 87% faster than substr strpos without a wrapper function is 89% faster than strpos with a wrapper function
Output for 5.4.13
substr: 0.000001397s/iteration @ 10000 iterations strpos: 0.000000981s/iteration @ 10000 iterations strpos (without wrapper): 0.000000795s/iteration @ 10000 iterations strpos is 70% faster than substr strpos without a wrapper function is 81% faster than strpos with a wrapper function
Output for 5.4.12
substr: 0.000000775s/iteration @ 10000 iterations strpos: 0.000000492s/iteration @ 10000 iterations strpos (without wrapper): 0.000000444s/iteration @ 10000 iterations strpos is 63% faster than substr strpos without a wrapper function is 90% faster than strpos with a wrapper function
Output for 5.4.11
substr: 0.000000715s/iteration @ 10000 iterations strpos: 0.000000481s/iteration @ 10000 iterations strpos (without wrapper): 0.000000391s/iteration @ 10000 iterations strpos is 67% faster than substr strpos without a wrapper function is 81% faster than strpos with a wrapper function
Output for 5.4.10
substr: 0.000000876s/iteration @ 10000 iterations strpos: 0.000000636s/iteration @ 10000 iterations strpos (without wrapper): 0.000000577s/iteration @ 10000 iterations strpos is 72% faster than substr strpos without a wrapper function is 90% faster than strpos with a wrapper function
Output for 5.4.9
substr: 0.000000961s/iteration @ 10000 iterations strpos: 0.000000851s/iteration @ 10000 iterations strpos (without wrapper): 0.000000697s/iteration @ 10000 iterations strpos is 88% faster than substr strpos without a wrapper function is 81% faster than strpos with a wrapper function
Output for 5.4.8
substr: 0.000001009s/iteration @ 10000 iterations strpos: 0.000000571s/iteration @ 10000 iterations strpos (without wrapper): 0.000000632s/iteration @ 10000 iterations strpos is 56% faster than substr strpos with a wrapper function is 90% faster than strpos without a wrapper fucntion
Output for 5.4.7
substr: 0.000001092s/iteration @ 10000 iterations strpos: 0.000000791s/iteration @ 10000 iterations strpos (without wrapper): 0.000000559s/iteration @ 10000 iterations strpos is 72% faster than substr strpos without a wrapper function is 70% faster than strpos with a wrapper function
Output for 5.4.6
substr: 0.000001277s/iteration @ 10000 iterations strpos: 0.000000751s/iteration @ 10000 iterations strpos (without wrapper): 0.000000555s/iteration @ 10000 iterations strpos is 58% faster than substr strpos without a wrapper function is 73% faster than strpos with a wrapper function
Output for 5.4.5
substr: 0.000001128s/iteration @ 10000 iterations strpos: 0.000000837s/iteration @ 10000 iterations strpos (without wrapper): 0.000000678s/iteration @ 10000 iterations strpos is 74% faster than substr strpos without a wrapper function is 80% faster than strpos with a wrapper function
Output for 5.4.4
substr: 0.000001188s/iteration @ 10000 iterations strpos: 0.000000834s/iteration @ 10000 iterations strpos (without wrapper): 0.000000606s/iteration @ 10000 iterations strpos is 70% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.4.3
substr: 0.000001261s/iteration @ 10000 iterations strpos: 0.000000820s/iteration @ 10000 iterations strpos (without wrapper): 0.000000666s/iteration @ 10000 iterations strpos is 65% faster than substr strpos without a wrapper function is 81% faster than strpos with a wrapper function
Output for 5.4.2
substr: 0.000001199s/iteration @ 10000 iterations strpos: 0.000000767s/iteration @ 10000 iterations strpos (without wrapper): 0.000000675s/iteration @ 10000 iterations strpos is 63% faster than substr strpos without a wrapper function is 88% faster than strpos with a wrapper function
Output for 5.4.1
substr: 0.000002202s/iteration @ 10000 iterations strpos: 0.000000834s/iteration @ 10000 iterations strpos (without wrapper): 0.000000376s/iteration @ 10000 iterations strpos is 37% faster than substr strpos without a wrapper function is 45% faster than strpos with a wrapper function
Output for 5.4.0
substr: 0.000000698s/iteration @ 10000 iterations strpos: 0.000000475s/iteration @ 10000 iterations strpos (without wrapper): 0.000000423s/iteration @ 10000 iterations strpos is 68% faster than substr strpos without a wrapper function is 88% faster than strpos with a wrapper function
Output for 5.3.29
substr: 0.000000754s/iteration @ 10000 iterations strpos: 0.000000558s/iteration @ 10000 iterations strpos (without wrapper): 0.000000428s/iteration @ 10000 iterations strpos is 73% faster than substr strpos without a wrapper function is 76% faster than strpos with a wrapper function
Output for 5.3.28
substr: 0.000000891s/iteration @ 10000 iterations strpos: 0.000000533s/iteration @ 10000 iterations strpos (without wrapper): 0.000000413s/iteration @ 10000 iterations strpos is 59% faster than substr strpos without a wrapper function is 77% faster than strpos with a wrapper function
Output for 5.3.27
substr: 0.000001276s/iteration @ 10000 iterations strpos: 0.000000800s/iteration @ 10000 iterations strpos (without wrapper): 0.000000436s/iteration @ 10000 iterations strpos is 62% faster than substr strpos without a wrapper function is 54% faster than strpos with a wrapper function
Output for 5.3.26
substr: 0.000001382s/iteration @ 10000 iterations strpos: 0.000000894s/iteration @ 10000 iterations strpos (without wrapper): 0.000000675s/iteration @ 10000 iterations strpos is 64% faster than substr strpos without a wrapper function is 75% faster than strpos with a wrapper function
Output for 5.3.25
substr: 0.000001456s/iteration @ 10000 iterations strpos: 0.000000965s/iteration @ 10000 iterations strpos (without wrapper): 0.000000660s/iteration @ 10000 iterations strpos is 66% faster than substr strpos without a wrapper function is 68% faster than strpos with a wrapper function
Output for 5.3.24
substr: 0.000001321s/iteration @ 10000 iterations strpos: 0.000000881s/iteration @ 10000 iterations strpos (without wrapper): 0.000000655s/iteration @ 10000 iterations strpos is 66% faster than substr strpos without a wrapper function is 74% faster than strpos with a wrapper function
Output for 5.3.23
substr: 0.000001287s/iteration @ 10000 iterations strpos: 0.000000913s/iteration @ 10000 iterations strpos (without wrapper): 0.000000705s/iteration @ 10000 iterations strpos is 70% faster than substr strpos without a wrapper function is 77% faster than strpos with a wrapper function
Output for 5.3.22
substr: 0.000001365s/iteration @ 10000 iterations strpos: 0.000000960s/iteration @ 10000 iterations strpos (without wrapper): 0.000000697s/iteration @ 10000 iterations strpos is 70% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.3.21
substr: 0.000001552s/iteration @ 10000 iterations strpos: 0.000001132s/iteration @ 10000 iterations strpos (without wrapper): 0.000000832s/iteration @ 10000 iterations strpos is 72% faster than substr strpos without a wrapper function is 73% faster than strpos with a wrapper function
Output for 5.3.20
substr: 0.000001558s/iteration @ 10000 iterations strpos: 0.000002775s/iteration @ 10000 iterations strpos (without wrapper): 0.000000783s/iteration @ 10000 iterations substr is 56% faster than strpos strpos without a wrapper function is 28% faster than strpos with a wrapper function
Output for 5.3.19
substr: 0.000001527s/iteration @ 10000 iterations strpos: 0.000001040s/iteration @ 10000 iterations strpos (without wrapper): 0.000000691s/iteration @ 10000 iterations strpos is 68% faster than substr strpos without a wrapper function is 66% faster than strpos with a wrapper function
Output for 5.3.18
substr: 0.000001490s/iteration @ 10000 iterations strpos: 0.000001030s/iteration @ 10000 iterations strpos (without wrapper): 0.000000748s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.3.17
substr: 0.000001568s/iteration @ 10000 iterations strpos: 0.000001028s/iteration @ 10000 iterations strpos (without wrapper): 0.000000775s/iteration @ 10000 iterations strpos is 65% faster than substr strpos without a wrapper function is 75% faster than strpos with a wrapper function
Output for 5.3.16
substr: 0.000001953s/iteration @ 10000 iterations strpos: 0.000001153s/iteration @ 10000 iterations strpos (without wrapper): 0.000000898s/iteration @ 10000 iterations strpos is 59% faster than substr strpos without a wrapper function is 77% faster than strpos with a wrapper function
Output for 5.3.15
substr: 0.000000836s/iteration @ 10000 iterations strpos: 0.000000611s/iteration @ 10000 iterations strpos (without wrapper): 0.000000439s/iteration @ 10000 iterations strpos is 73% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.3.14
substr: 0.000001480s/iteration @ 10000 iterations strpos: 0.000000888s/iteration @ 10000 iterations strpos (without wrapper): 0.000000519s/iteration @ 10000 iterations strpos is 60% faster than substr strpos without a wrapper function is 58% faster than strpos with a wrapper function
Output for 5.3.13
substr: 0.000001016s/iteration @ 10000 iterations strpos: 0.000000738s/iteration @ 10000 iterations strpos (without wrapper): 0.000000487s/iteration @ 10000 iterations strpos is 72% faster than substr strpos without a wrapper function is 66% faster than strpos with a wrapper function
Output for 5.3.12
substr: 0.000000945s/iteration @ 10000 iterations strpos: 0.000001024s/iteration @ 10000 iterations strpos (without wrapper): 0.000000681s/iteration @ 10000 iterations substr is 92% faster than strpos strpos without a wrapper function is 66% faster than strpos with a wrapper function
Output for 5.3.11
substr: 0.000000823s/iteration @ 10000 iterations strpos: 0.000000565s/iteration @ 10000 iterations strpos (without wrapper): 0.000000427s/iteration @ 10000 iterations strpos is 68% faster than substr strpos without a wrapper function is 75% faster than strpos with a wrapper function
Output for 5.3.10
substr: 0.000001010s/iteration @ 10000 iterations strpos: 0.000000678s/iteration @ 10000 iterations strpos (without wrapper): 0.000000452s/iteration @ 10000 iterations strpos is 67% faster than substr strpos without a wrapper function is 66% faster than strpos with a wrapper function
Output for 5.3.9
substr: 0.000001282s/iteration @ 10000 iterations strpos: 0.000000981s/iteration @ 10000 iterations strpos (without wrapper): 0.000000708s/iteration @ 10000 iterations strpos is 76% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.3.8
substr: 0.000001464s/iteration @ 10000 iterations strpos: 0.000001083s/iteration @ 10000 iterations strpos (without wrapper): 0.000000642s/iteration @ 10000 iterations strpos is 73% faster than substr strpos without a wrapper function is 59% faster than strpos with a wrapper function
Output for 5.3.7
substr: 0.000002960s/iteration @ 10000 iterations strpos: 0.000001149s/iteration @ 10000 iterations strpos (without wrapper): 0.000000708s/iteration @ 10000 iterations strpos is 38% faster than substr strpos without a wrapper function is 61% faster than strpos with a wrapper function
Output for 5.3.6
substr: 0.000001405s/iteration @ 10000 iterations strpos: 0.000000979s/iteration @ 10000 iterations strpos (without wrapper): 0.000000734s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 74% faster than strpos with a wrapper function
Output for 5.3.5
substr: 0.000001438s/iteration @ 10000 iterations strpos: 0.000000965s/iteration @ 10000 iterations strpos (without wrapper): 0.000000696s/iteration @ 10000 iterations strpos is 67% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.3.4
substr: 0.000001370s/iteration @ 10000 iterations strpos: 0.000000936s/iteration @ 10000 iterations strpos (without wrapper): 0.000000652s/iteration @ 10000 iterations strpos is 68% faster than substr strpos without a wrapper function is 69% faster than strpos with a wrapper function
Output for 5.3.3
substr: 0.000001165s/iteration @ 10000 iterations strpos: 0.000000654s/iteration @ 10000 iterations strpos (without wrapper): 0.000000531s/iteration @ 10000 iterations strpos is 56% faster than substr strpos without a wrapper function is 81% faster than strpos with a wrapper function
Output for 5.3.2
substr: 0.000001269s/iteration @ 10000 iterations strpos: 0.000000889s/iteration @ 10000 iterations strpos (without wrapper): 0.000000656s/iteration @ 10000 iterations strpos is 70% faster than substr strpos without a wrapper function is 73% faster than strpos with a wrapper function
Output for 5.3.1
substr: 0.000004451s/iteration @ 10000 iterations strpos: 0.000001181s/iteration @ 10000 iterations strpos (without wrapper): 0.000000819s/iteration @ 10000 iterations strpos is 26% faster than substr strpos without a wrapper function is 69% faster than strpos with a wrapper function
Output for 5.3.0
substr: 0.000001589s/iteration @ 10000 iterations strpos: 0.000000954s/iteration @ 10000 iterations strpos (without wrapper): 0.000000695s/iteration @ 10000 iterations strpos is 60% faster than substr strpos without a wrapper function is 72% faster than strpos with a wrapper function
Output for 5.2.17
substr: 0.000001043s/iteration @ 10000 iterations strpos: 0.000002686s/iteration @ 10000 iterations strpos (without wrapper): 0.000000453s/iteration @ 10000 iterations substr is 38% faster than strpos strpos without a wrapper function is 16% faster than strpos with a wrapper function
Output for 5.2.16
substr: 0.000000957s/iteration @ 10000 iterations strpos: 0.000000770s/iteration @ 10000 iterations strpos (without wrapper): 0.000000476s/iteration @ 10000 iterations strpos is 80% faster than substr strpos without a wrapper function is 61% faster than strpos with a wrapper function
Output for 5.2.15
substr: 0.000001707s/iteration @ 10000 iterations strpos: 0.000001209s/iteration @ 10000 iterations strpos (without wrapper): 0.000000719s/iteration @ 10000 iterations strpos is 70% faster than substr strpos without a wrapper function is 59% faster than strpos with a wrapper function
Output for 5.2.14
substr: 0.000001617s/iteration @ 10000 iterations strpos: 0.000001243s/iteration @ 10000 iterations strpos (without wrapper): 0.000000758s/iteration @ 10000 iterations strpos is 76% faster than substr strpos without a wrapper function is 61% faster than strpos with a wrapper function
Output for 5.2.13
substr: 0.000000875s/iteration @ 10000 iterations strpos: 0.000000896s/iteration @ 10000 iterations strpos (without wrapper): 0.000000606s/iteration @ 10000 iterations substr is 97% faster than strpos strpos without a wrapper function is 67% faster than strpos with a wrapper function
Output for 5.2.12
substr: 0.000001106s/iteration @ 10000 iterations strpos: 0.000000738s/iteration @ 10000 iterations strpos (without wrapper): 0.000000502s/iteration @ 10000 iterations strpos is 66% faster than substr strpos without a wrapper function is 67% faster than strpos with a wrapper function
Output for 5.2.11
substr: 0.000001602s/iteration @ 10000 iterations strpos: 0.000001115s/iteration @ 10000 iterations strpos (without wrapper): 0.000000737s/iteration @ 10000 iterations strpos is 69% faster than substr strpos without a wrapper function is 66% faster than strpos with a wrapper function
Output for 5.2.10
substr: 0.000001502s/iteration @ 10000 iterations strpos: 0.000001260s/iteration @ 10000 iterations strpos (without wrapper): 0.000000797s/iteration @ 10000 iterations strpos is 83% faster than substr strpos without a wrapper function is 63% faster than strpos with a wrapper function
Output for 5.2.9
substr: 0.000001808s/iteration @ 10000 iterations strpos: 0.000001245s/iteration @ 10000 iterations strpos (without wrapper): 0.000000757s/iteration @ 10000 iterations strpos is 68% faster than substr strpos without a wrapper function is 60% faster than strpos with a wrapper function
Output for 5.2.8
substr: 0.000001879s/iteration @ 10000 iterations strpos: 0.000001222s/iteration @ 10000 iterations strpos (without wrapper): 0.000000680s/iteration @ 10000 iterations strpos is 65% faster than substr strpos without a wrapper function is 55% faster than strpos with a wrapper function
Output for 5.2.7
substr: 0.000001495s/iteration @ 10000 iterations strpos: 0.000001343s/iteration @ 10000 iterations strpos (without wrapper): 0.000000678s/iteration @ 10000 iterations strpos is 89% faster than substr strpos without a wrapper function is 50% faster than strpos with a wrapper function
Output for 5.2.6
substr: 0.000001722s/iteration @ 10000 iterations strpos: 0.000001172s/iteration @ 10000 iterations strpos (without wrapper): 0.000000767s/iteration @ 10000 iterations strpos is 68% faster than substr strpos without a wrapper function is 65% faster than strpos with a wrapper function
Output for 5.2.5
substr: 0.000001445s/iteration @ 10000 iterations strpos: 0.000001221s/iteration @ 10000 iterations strpos (without wrapper): 0.000000707s/iteration @ 10000 iterations strpos is 84% faster than substr strpos without a wrapper function is 57% faster than strpos with a wrapper function
Output for 5.2.4
substr: 0.000001797s/iteration @ 10000 iterations strpos: 0.000001226s/iteration @ 10000 iterations strpos (without wrapper): 0.000000683s/iteration @ 10000 iterations strpos is 68% faster than substr strpos without a wrapper function is 55% faster than strpos with a wrapper function
Output for 5.2.3
substr: 0.000001727s/iteration @ 10000 iterations strpos: 0.000001263s/iteration @ 10000 iterations strpos (without wrapper): 0.000000434s/iteration @ 10000 iterations strpos is 73% faster than substr strpos without a wrapper function is 34% faster than strpos with a wrapper function
Output for 5.2.2
substr: 0.000001335s/iteration @ 10000 iterations strpos: 0.000001396s/iteration @ 10000 iterations strpos (without wrapper): 0.000000870s/iteration @ 10000 iterations substr is 95% faster than strpos strpos without a wrapper function is 62% faster than strpos with a wrapper function
Output for 5.2.1
substr: 0.000000962s/iteration @ 10000 iterations strpos: 0.000000813s/iteration @ 10000 iterations strpos (without wrapper): 0.000000744s/iteration @ 10000 iterations strpos is 84% faster than substr strpos without a wrapper function is 91% faster than strpos with a wrapper function
Output for 5.2.0
substr: 0.000000799s/iteration @ 10000 iterations strpos: 0.000000644s/iteration @ 10000 iterations strpos (without wrapper): 0.000000447s/iteration @ 10000 iterations strpos is 80% faster than substr strpos without a wrapper function is 69% faster than strpos with a wrapper function
Output for 5.1.6
substr: 0.000001316s/iteration @ 10000 iterations strpos: 0.000000681s/iteration @ 10000 iterations strpos (without wrapper): 0.000000418s/iteration @ 10000 iterations strpos is 51% faster than substr strpos without a wrapper function is 61% faster than strpos with a wrapper function
Output for 5.1.5
substr: 0.000001618s/iteration @ 10000 iterations strpos: 0.000001488s/iteration @ 10000 iterations strpos (without wrapper): 0.000000686s/iteration @ 10000 iterations strpos is 91% faster than substr strpos without a wrapper function is 46% faster than strpos with a wrapper function
Output for 5.1.4
substr: 0.000001513s/iteration @ 10000 iterations strpos: 0.000001125s/iteration @ 10000 iterations strpos (without wrapper): 0.000000708s/iteration @ 10000 iterations strpos is 74% faster than substr strpos without a wrapper function is 62% faster than strpos with a wrapper function
Output for 5.1.3
substr: 0.000001427s/iteration @ 10000 iterations strpos: 0.000001121s/iteration @ 10000 iterations strpos (without wrapper): 0.000000732s/iteration @ 10000 iterations strpos is 78% faster than substr strpos without a wrapper function is 65% faster than strpos with a wrapper function
Output for 5.1.2
substr: 0.000001635s/iteration @ 10000 iterations strpos: 0.000001270s/iteration @ 10000 iterations strpos (without wrapper): 0.000000781s/iteration @ 10000 iterations strpos is 77% faster than substr strpos without a wrapper function is 61% faster than strpos with a wrapper function
Output for 5.1.1
substr: 0.000002023s/iteration @ 10000 iterations strpos: 0.000001557s/iteration @ 10000 iterations strpos (without wrapper): 0.000000759s/iteration @ 10000 iterations strpos is 76% faster than substr strpos without a wrapper function is 48% faster than strpos with a wrapper function
Output for 5.1.0
substr: 0.000000911s/iteration @ 10000 iterations strpos: 0.000000740s/iteration @ 10000 iterations strpos (without wrapper): 0.000000446s/iteration @ 10000 iterations strpos is 81% faster than substr strpos without a wrapper function is 60% faster than strpos with a wrapper function
Output for 5.0.5
substr: 0.000002121s/iteration @ 10000 iterations strpos: 0.000001865s/iteration @ 10000 iterations strpos (without wrapper): 0.000001184s/iteration @ 10000 iterations strpos is 87% faster than substr strpos without a wrapper function is 63% faster than strpos with a wrapper function
Output for 5.0.4
substr: 0.000001566s/iteration @ 10000 iterations strpos: 0.000001282s/iteration @ 10000 iterations strpos (without wrapper): 0.000000783s/iteration @ 10000 iterations strpos is 81% faster than substr strpos without a wrapper function is 61% faster than strpos with a wrapper function
Output for 5.0.3
substr: 0.000001884s/iteration @ 10000 iterations strpos: 0.000001197s/iteration @ 10000 iterations strpos (without wrapper): 0.000000858s/iteration @ 10000 iterations strpos is 63% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 5.0.2
substr: 0.000001609s/iteration @ 10000 iterations strpos: 0.000001148s/iteration @ 10000 iterations strpos (without wrapper): 0.000000673s/iteration @ 10000 iterations strpos is 71% faster than substr strpos without a wrapper function is 58% faster than strpos with a wrapper function
Output for 5.0.1
substr: 0.000001325s/iteration @ 10000 iterations strpos: 0.000001122s/iteration @ 10000 iterations strpos (without wrapper): 0.000000997s/iteration @ 10000 iterations strpos is 84% faster than substr strpos without a wrapper function is 88% faster than strpos with a wrapper function
Output for 5.0.0
substr: 0.000002269s/iteration @ 10000 iterations strpos: 0.000002307s/iteration @ 10000 iterations strpos (without wrapper): 0.000000965s/iteration @ 10000 iterations substr is 98% faster than strpos strpos without a wrapper function is 41% faster than strpos with a wrapper function
Output for 4.4.9
substr: 0.000001606s/iteration @ 10000 iterations strpos: 0.000001696s/iteration @ 10000 iterations strpos (without wrapper): 0.000001634s/iteration @ 10000 iterations substr is 94% faster than strpos strpos without a wrapper function is 96% faster than strpos with a wrapper function
Output for 4.4.8
substr: 0.000002897s/iteration @ 10000 iterations strpos: 0.000002570s/iteration @ 10000 iterations strpos (without wrapper): 0.000001807s/iteration @ 10000 iterations strpos is 88% faster than substr strpos without a wrapper function is 70% faster than strpos with a wrapper function
Output for 4.4.7
substr: 0.000003373s/iteration @ 10000 iterations strpos: 0.000002856s/iteration @ 10000 iterations strpos (without wrapper): 0.000001992s/iteration @ 10000 iterations strpos is 84% faster than substr strpos without a wrapper function is 69% faster than strpos with a wrapper function
Output for 4.4.6
substr: 0.000003073s/iteration @ 10000 iterations strpos: 0.000002858s/iteration @ 10000 iterations strpos (without wrapper): 0.000002239s/iteration @ 10000 iterations strpos is 93% faster than substr strpos without a wrapper function is 78% faster than strpos with a wrapper function
Output for 4.4.5
substr: 0.000003291s/iteration @ 10000 iterations strpos: 0.000002728s/iteration @ 10000 iterations strpos (without wrapper): 0.000001922s/iteration @ 10000 iterations strpos is 82% faster than substr strpos without a wrapper function is 70% faster than strpos with a wrapper function
Output for 4.4.4
substr: 0.000006507s/iteration @ 10000 iterations strpos: 0.000004267s/iteration @ 10000 iterations strpos (without wrapper): 0.000001716s/iteration @ 10000 iterations strpos is 65% faster than substr strpos without a wrapper function is 40% faster than strpos with a wrapper function
Output for 4.4.3
substr: 0.000002712s/iteration @ 10000 iterations strpos: 0.000002300s/iteration @ 10000 iterations strpos (without wrapper): 0.000001650s/iteration @ 10000 iterations strpos is 84% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 4.4.2
substr: 0.000002433s/iteration @ 10000 iterations strpos: 0.000002683s/iteration @ 10000 iterations strpos (without wrapper): 0.000003271s/iteration @ 10000 iterations substr is 90% faster than strpos strpos with a wrapper function is 82% faster than strpos without a wrapper fucntion
Output for 4.4.1
substr: 0.000002948s/iteration @ 10000 iterations strpos: 0.000002464s/iteration @ 10000 iterations strpos (without wrapper): 0.000001844s/iteration @ 10000 iterations strpos is 83% faster than substr strpos without a wrapper function is 74% faster than strpos with a wrapper function
Output for 4.4.0
substr: 0.000003425s/iteration @ 10000 iterations strpos: 0.000002782s/iteration @ 10000 iterations strpos (without wrapper): 0.000001982s/iteration @ 10000 iterations strpos is 81% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 4.3.11
substr: 0.000003005s/iteration @ 10000 iterations strpos: 0.000002283s/iteration @ 10000 iterations strpos (without wrapper): 0.000001643s/iteration @ 10000 iterations strpos is 75% faster than substr strpos without a wrapper function is 71% faster than strpos with a wrapper function
Output for 4.3.10
substr: 0.000003412s/iteration @ 10000 iterations strpos: 0.000002187s/iteration @ 10000 iterations strpos (without wrapper): 0.000001531s/iteration @ 10000 iterations strpos is 64% faster than substr strpos without a wrapper function is 69% faster than strpos with a wrapper function
Output for 4.3.9
substr: 0.000009280s/iteration @ 10000 iterations strpos: 0.000003111s/iteration @ 10000 iterations strpos (without wrapper): 0.000002418s/iteration @ 10000 iterations strpos is 33% faster than substr strpos without a wrapper function is 77% faster than strpos with a wrapper function
Output for 4.3.8
substr: 0.000002596s/iteration @ 10000 iterations strpos: 0.000002407s/iteration @ 10000 iterations strpos (without wrapper): 0.000001483s/iteration @ 10000 iterations strpos is 92% faster than substr strpos without a wrapper function is 61% faster than strpos with a wrapper function
Output for 4.3.7
substr: 0.000002702s/iteration @ 10000 iterations strpos: 0.000001921s/iteration @ 10000 iterations strpos (without wrapper): 0.000001469s/iteration @ 10000 iterations strpos is 71% faster than substr strpos without a wrapper function is 76% faster than strpos with a wrapper function
Output for 4.3.6
substr: 0.000002191s/iteration @ 10000 iterations strpos: 0.000003605s/iteration @ 10000 iterations strpos (without wrapper): 0.000002168s/iteration @ 10000 iterations substr is 60% faster than strpos strpos without a wrapper function is 60% faster than strpos with a wrapper function
Output for 4.3.5
substr: 0.000002155s/iteration @ 10000 iterations strpos: 0.000001933s/iteration @ 10000 iterations strpos (without wrapper): 0.000001592s/iteration @ 10000 iterations strpos is 89% faster than substr strpos without a wrapper function is 82% faster than strpos with a wrapper function
Output for 4.3.4
substr: 0.000002456s/iteration @ 10000 iterations strpos: 0.000002308s/iteration @ 10000 iterations strpos (without wrapper): 0.000001735s/iteration @ 10000 iterations strpos is 93% faster than substr strpos without a wrapper function is 75% faster than strpos with a wrapper function
Output for 4.3.3
substr: -0.000097128s/iteration @ 10000 iterations strpos: 0.000002709s/iteration @ 10000 iterations strpos (without wrapper): 0.000002055s/iteration @ 10000 iterations substr is -3585% faster than strpos strpos without a wrapper function is 75% faster than strpos with a wrapper function
Output for 4.3.2
substr: 0.000002317s/iteration @ 10000 iterations strpos: 0.000003963s/iteration @ 10000 iterations strpos (without wrapper): 0.000001840s/iteration @ 10000 iterations substr is 58% faster than strpos strpos without a wrapper function is 46% faster than strpos with a wrapper function
Output for 4.3.1
substr: 0.000002347s/iteration @ 10000 iterations strpos: 0.000001915s/iteration @ 10000 iterations strpos (without wrapper): 0.000001657s/iteration @ 10000 iterations strpos is 81% faster than substr strpos without a wrapper function is 86% faster than strpos with a wrapper function
Output for 4.3.0
substr: 0.000003395s/iteration @ 10000 iterations strpos: 0.000002980s/iteration @ 10000 iterations strpos (without wrapper): 0.000001526s/iteration @ 10000 iterations strpos is 87% faster than substr strpos without a wrapper function is 51% faster than strpos with a wrapper function