From the Clip The PHP Benchmark posted by JoeLencioni:
a way to open people's eyes to the fact that not every PHP code snippet will run at the same speed
This was a great article and I didn't even realize that such a subtle change in code would have such adverse effects to the speed of it. Especially crazy because the majority of our code runs off of foreach loops so over time I will be going back and recycling through them to change them to while loops.
Has anyone else seen speed improvements with changes in their PHP code?

3 Comments
Ozone42
Written Jun. 4, 2008 / Report /
Looking at that chart, foreach is the fastest. The lower the time it takes the better, no?
My main improvements are reducing/optimizing database calls.
Scrivs
Written Jun. 5, 2008 / Report /
Whoa, what the hell? Yesterday he had the while loop as much, much faster. Someone must've found an error in his testing code.
Scrivs
Written Jun. 5, 2008 / Report /
Ah yup: