title: PHP for loop vs. foreach with range
body: <p>Which of these would be better for performance and readability? </p>
  
  <pre><code>foreach(range(0,10000) as $i) {} // 3.847 ms
  
  for($i = 0; $i &lt; 10000; ++$i) {} // 0.663 ms
  </code></pre>
  
  <p><strong>Edit</strong>: Did a benchmark and the last one was almost 6 times faster.</p>