<?php $start = microtime(true); for($i = 1; $j = 1, $i <= 10000000; $i++){ ($i == $j); } $end = microtime(true); echo 'Not ternary: ', $end - $start, PHP_EOL; $start = microtime(true); for($i = 1; $j = 1, $i <= 10000000; $i++){ ($i == $j ? true : false); } $end = microtime(true); echo 'Ternary: ', $end - $start, PHP_EOL; ?>
You have javascript disabled. You will not be able to edit any code.
This script was stopped while abusing our resources