Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    A third test case would be to use multiple echo statements with one php tag, as you wouldn't need to use string concatenation then. Commented Apr 26, 2010 at 16:42
  • I've redone the tests with 50,000 rows and added the multi echo in 1 tag method too Commented Apr 26, 2010 at 23:19
  • 5
    +1 Mesuring is important when we want to optimize. We often realize that this kind of optimisation is useless. Commented Nov 5, 2010 at 20:15
  • 18
    From the looks of it, the first two examples output far more whitespace than the last example. That could be the reason for the higher runtime. Commented Mar 24, 2011 at 17:59
  • Also echo accepts multiple expressions to be output. No variant with that feature has been considered in the metrics. Commented Oct 2, 2012 at 9:52