@NewsGrailJul 23.2008 — #I just tried it, for me the first one was consistently slower by around 0.0005 seconds over 10,000 iterations. You can use this bit of code to quickly benchmark code, run the script a few times to get a consistent time.
$i = 0; // Change 10000 to the number of times to run the code. The larger the function the less you will likely want to run it. while ($i != 10000) { // Code you want to benchmark goes here. echo "</p>n";
@NogDogJul 23.2008 — #I just tried it, for me the first one was consistently slower by around 0.0005 seconds over 10,000 iterations. You can use this bit of code to quickly benchmark code, run the script a few times to get a consistent time....[/QUOTE] Is that 0.0005 seconds per iteration, or per the full 10,000 iterations. If the latter, it's not even worth a second of [i]your[/i] time to worry about. If the former (.0005sec/instance) it's still really not worth worrying about unless you're programming some large, intense, high-demand application where every microsecond matters.
@MrCoderJul 23.2008 — #Is that 0.0005 seconds per iteration, or per the full 10,000 iterations. If the latter, it's not even worth a second of [i]your[/i] time to worry about. If the former (.0005sec/instance) it's still really not worth worrying about unless [B]you're programming some large, intense, high-demand application where every microsecond matters.[/B][/QUOTE]