<?php
//程序運行時間
$starttime = explode(' ',microtime());
echo microtime();
/*········以下是代碼區·········*/
for($i=0;$i<1000000;$i++){
$i;
}
/*········以上是代碼區·········*/
//程序運行時間
$endtime = explode(' ',microtime());
$thistime = $endtime[0]+$endtime[1]-($starttime[0]+$starttime[1]);
$thistime = round($thistime,3);
echo "本網頁執行耗時:".$thistime." 秒。".time();
?>