4 ms·
In the case of "Counting Loops", PHP is slower because it actually calls the count() function for each iteration. Conclusion? Use foreach loops instead, which
by scribu 18y ago
In the case of "Counting Loops", PHP is slower because it actually calls the count() function for each iteration.
Conclusion? Use foreach loops instead, which are the fastes. :)