PHP耗时

$t1 =  microtime(true);
$t2 = microtime(true);
echo '耗时'.round($t2-$t1,3).'秒<br>';
echo 'Now memory_get_usage: ' . memory_get_usage() . '<br />';
exit();
 
原文地址:https://www.cnblogs.com/aln0825/p/14780389.html