Perhaps this question has been asked several times but I can't find a proper answer here or in Google so apologies if this is a dupe or something like that but here I go...
What's the best way to achieve performance in a loop:
count($var)
each timefor ($i=0;$i<count($var);$i++) { // do something }
put a var outside and use that var:
$cnt = count($var); for ($i=0;$i<$var;$i++) { // do something }
Is there any PHP script or code to show execution times and so on? I mean something for benchmark and see the results on this cases?