- time: documentation ( source)
- microtime: documentation ( source)
- number_format: documentation ( source)
<?php
$timestart = microtime( true );
$string = "This is an?example string";
for( $i=0; $i<=100; $i++ ) {
$result = time();
}
$timeend = microtime( true );
$timetotal = $timeend - $timestart;
$r = number_format( $timetotal, 5 );
echo $r;
echo $result;