<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 09:09:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[John Walsh's Blog: PHP Benchmark - For vs While]]></title>
      <guid>http://www.phpdeveloper.org/news/7505</guid>
      <link>http://www.phpdeveloper.org/news/7505</link>
      <description><![CDATA[<p>
<i>John Walsh</i> filled us in on a <a href="http://www.myphpdigest.com/tutorial/PHP%20Benchmark%20-%20For%20vs%20While">new set of benchmarks</a> he worked up comparing two of the standard looping structures in PHP - for versus while.
</p>
<blockquote>
People always ask me what statement is faster, so I've gone ahead and created a benchmark test using <a href="http://httpd.apache.org/docs/2.0/programs/ab.html">Apache's AB Benchmarking tool</a>. There's no reason not to use For either, you can use it with any while statement but While in some cases mean's less lines, but i prefer speed than less lines of code. 
</blockquote>
<p>
He <a href="http://www.myphpdigest.com/tutorial/PHP%20Benchmark%20-%20For%20vs%20While">created some simple scripts</a> to perform the tests and ran them through the AB benchmarker to come up with his results - with while just barely edging out the for loop by one millisecond.
</p>]]></description>
      <pubDate>Mon, 26 Mar 2007 15:19:23 -0500</pubDate>
    </item>
  </channel>
</rss>
