测试php语句执行时间 $start = microtime(true); $elapsed = microtime(true) - $start; echo "That took $elapsed seconds.<br>";