Benchmark One - High

0.69466428999999 - 8000 cycles

Benchmark Two - High

0.67898218999999 - 8000 cycles

Benchmark One - Low

0.95591081999999 - 8000 cycles

Benchmark Two - Low

0.87694663999998 - 8000 cycles

Current Benchmark

<?php 

echo 'hello, time to test IF true is '.((true)?'true':'false').'or not';
    
 
?>
vs.
<?php 

echo 'hello, time to test IF true is '; if(true) echo 'true'; else echo 'false'; echo 'or not';
    
 
?>

Conclusion

After an average of 8000 cycles, the fastest option is Benchmark 2!

<?php 

echo 'hello, time to test IF true is '; if(true) echo 'true'; else echo 'false'; echo 'or not';
    
 
?>


Copyright Syridium DV