- ob_start: documentation ( source)
- microtime: documentation ( source)
- round: documentation ( source)
- ob_end_clean: documentation ( source)
- header: documentation ( source)
<?php
header('Content-Type: text/plain');
ob_start();
$t = microtime(true);
while($i < 1000) {
++$i;
}
$tmp = microtime(true) - $t;
ob_end_clean();
echo round($tmp, 6) . "\n";
ob_start();
$t = microtime(true);
while($i < 1000) {
++$i;
}
$tmp = microtime(true) - $t;
ob_end_clean();
echo round($tmp, 6) . "\n";