PHP Benchmark - For vs While from John's PHP Digest starts the FOR VS WHILE argument again.
For VS While was already a topic in the old days:
Bruesoft's real time benchmark on loops changes result each request. Cosmin Budinschi's test show WHILE is faster than FOR.
I believe this is an endless fight, but I'm in the WHILE's side.
WHILE is FASTER! and USE LESS MEMORY
I have to support it with one of the best method ever(found out 3 days ago)
Screencast!
BTW if you can't see it, check out the revver page where my screencast is shown.
In this screencast, you will see that WHILE is slightly faster and it uses less memory!
Recent comments
22 min 30 sec ago
26 min 35 sec ago
27 min 14 sec ago
30 min 37 sec ago
2 hours 18 min ago
2 hours 52 min ago
5 hours 17 min ago
5 hours 19 min ago
5 hours 23 min ago
5 hours 24 min ago