Re: If the first four characters are "0000", then do {} - timing tests
| From: | shiplu | Date: | Wed, 27 Jan 2010 00:25:21 +0000 |
| Subject: | Re: If the first four characters are "0000", then do {} - timing tests | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301505@lists.php.net to get a copy of this message | ||
Ran this code (http://pastie.org/795983)
The result is,
array of 10,000
Array
(
[[]] => 5.66168689728
[strpos] => 5.70796895027
[substr] => 5.92751288414
[preg_match] => 6.21515512466
)
--
Shiplu Mokaddim
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)