<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Speed Of String Comparison Functions In PHP</title>
	<atom:link href="http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/</link>
	<description>Ramblings about art, education, culture and a lot more</description>
	<lastBuildDate>Fri, 12 Mar 2010 08:07:09 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ian Clifton</title>
		<link>http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/comment-page-1/#comment-110627</link>
		<dc:creator>Ian Clifton</dc:creator>
		<pubDate>Wed, 06 Jan 2010 17:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/#comment-110627</guid>
		<description>Hi Dudewtf, I haven&#039;t specifically tested preg_replace in a controlled environment, but I&#039;d suspect it is only slightly slower than preg_match.  Finding matches is the hard part; after that, it&#039;s just string replacement.  Assuming your string isn&#039;t excessively long, the operation is fairly trivial.</description>
		<content:encoded><![CDATA[<p>Hi Dudewtf, I haven&#8217;t specifically tested preg_replace in a controlled environment, but I&#8217;d suspect it is only slightly slower than preg_match.  Finding matches is the hard part; after that, it&#8217;s just string replacement.  Assuming your string isn&#8217;t excessively long, the operation is fairly trivial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dudewtf</title>
		<link>http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/comment-page-1/#comment-110626</link>
		<dc:creator>Dudewtf</dc:creator>
		<pubDate>Tue, 05 Jan 2010 12:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/#comment-110626</guid>
		<description>Do you know whats the average speed of preg_replace?
Is it right up there with preg_match?  preg functions might be slow because the it scans the string several times depending on how many () you have in the regex.</description>
		<content:encoded><![CDATA[<p>Do you know whats the average speed of preg_replace?<br />
Is it right up there with preg_match?  preg functions might be slow because the it scans the string several times depending on how many () you have in the regex.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders Heie</title>
		<link>http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/comment-page-1/#comment-110561</link>
		<dc:creator>Anders Heie</dc:creator>
		<pubDate>Tue, 07 Jul 2009 18:10:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/#comment-110561</guid>
		<description>You may see differente results for many small searches, since the time it takes to run each function probably is time = setup constant + search time. 

It would be interesting to see the results summarized for various search lengths, particularly searching short strings.

Thanks for running the test and posting it !</description>
		<content:encoded><![CDATA[<p>You may see differente results for many small searches, since the time it takes to run each function probably is time = setup constant + search time. </p>
<p>It would be interesting to see the results summarized for various search lengths, particularly searching short strings.</p>
<p>Thanks for running the test and posting it !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Clifton</title>
		<link>http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/comment-page-1/#comment-110347</link>
		<dc:creator>Ian Clifton</dc:creator>
		<pubDate>Fri, 05 Sep 2008 03:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/#comment-110347</guid>
		<description>I can&#039;t say for absolutely sure since I didn&#039;t make note of it at the time (but I definitely should have!), but I believe it was 5.2.0, since that was the most current version at the time.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t say for absolutely sure since I didn&#8217;t make note of it at the time (but I definitely should have!), but I believe it was 5.2.0, since that was the most current version at the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/comment-page-1/#comment-110344</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Wed, 03 Sep 2008 11:26:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/#comment-110344</guid>
		<description>Thanks for the results.

Which PHP version was used for this test?</description>
		<content:encoded><![CDATA[<p>Thanks for the results.</p>
<p>Which PHP version was used for this test?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP: speed of string comparison functions &#124; Tummblr</title>
		<link>http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/comment-page-1/#comment-46763</link>
		<dc:creator>PHP: speed of string comparison functions &#124; Tummblr</dc:creator>
		<pubDate>Thu, 29 Nov 2007 01:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/#comment-46763</guid>
		<description>[...] is a recent benchmark of various PHP string comparison functions. Not surprisingly, the fastest is strpos. But did you know that preg_match is faster strstr and not [...]</description>
		<content:encoded><![CDATA[<p>[...] is a recent benchmark of various PHP string comparison functions. Not surprisingly, the fastest is strpos. But did you know that preg_match is faster strstr and not [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yogesh Suryawanshi</title>
		<link>http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/comment-page-1/#comment-30723</link>
		<dc:creator>Yogesh Suryawanshi</dc:creator>
		<pubDate>Wed, 19 Sep 2007 09:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gordaen.com/2007/01/07/the-speed-of-string-comparison-functions-in-php/#comment-30723</guid>
		<description>This is the great article very useful for writing optimized code.</description>
		<content:encoded><![CDATA[<p>This is the great article very useful for writing optimized code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
