- time: documentation ( source)
- strtotime: documentation ( source)
<?php
$time = time();
for($i = 0;$i < 1000; $i++) {
$val1 = (1 === "1");
}
echo strtotime(true) - $time;
echo "\n";
$time = time();
for($j = 0;$j < 1000; $j++) {
$val2 = (1 == "1");
}
echo strtotime(true) - $time;