title: Why is foreach so slow?
body: <p><a href="http://www.phpbench.com/" rel="nofollow noreferrer">PHPBench.com</a> runs quick benchmark scripts on each pageload. On the foreach test, when I load it, foreach takes anywhere from 4 to 10 times as long to run than the third example.</p>
  
  <p>Why is it that a native language construct is apparently slower than performing the logic oneself?</p>