I should have known that he launched several different blocks in a loop of 10,000 iterations. Lesson: Do not worry. Write code to read and maintain. Use the MVC pattern ... :)
time : 2.66 microseconds
<? if ($output) { ?>
<h2><?=$output;?></h2>
<? } ?>
time : 1.65 microseconds
<? if ($output) { echo "<h2>$output</h2>"; } ?>
time : 1.65 microseconds
<? if ($output) { echo "<h2>".$output."</h2>"; } ?>
time : 1.64 microseconds
<? if ($output) { echo '<h2>'.$output.'</h2>'; } ?>
source
share