<?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>Mon, 20 May 2013 23:11:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SeeIT.com: The include() include_once() performance debate]]></title>
      <guid>http://www.phpdeveloper.org/news/14641</guid>
      <link>http://www.phpdeveloper.org/news/14641</link>
      <description><![CDATA[<p>
From the SeeIT.org blog today there's a new post rehashing an old topic that pops up from time to time in the PHP community - the <a href="http://blog.seeit.org/2010/06/php-the-include-include_once-performance-debate/">include vs include_once performance debate</a>.
</p>
<blockquote>
The conventional wisdom always said that PHP's include()/require() was quicker than include_once()/require_once(), but recently I came across <a href="http://arin.me/blog/php-require-vs-include-vs-require_once-vs-include_once-performance-test">an interesting post by Arin Sarkissian which suggests otherwise</a>.  [...] So in keeping with the spirit of quick and dirty experimentation I hacked up some code and ran some tests on include()/require() against include_once()/require_once() and on the relative/absolute path issue. The results are pretty surprising and I love to hear some views.
</blockquote>
<p>
He includes the testing methodology consisted of creating 10,000 files with a simple variable assignment in them and a loop to run through all of them to record the time (as reported by <a href="http://php.net/microtime">microtime</a>) switching out the different times of inclusion each time - include, include_once, require, require_once. You'll have to <a href="http://blog.seeit.org/2010/06/php-the-include-include_once-performance-debate/">visit the post</a> yourself to see the results of the tests. There's charts and tables showing the differences in results based on things like using APC and PHP4 versus PHP5.
</p>]]></description>
      <pubDate>Fri, 11 Jun 2010 12:42:44 -0500</pubDate>
    </item>
  </channel>
</rss>
