计算php运行时间(毫秒数) 发表于 2017-05-15 分类于 PHP有时候想看看某一块代码的运行时间,看看是如何计算的非常简单1234$t1 = microtime(true);//php script here$t2 = microtime(true);echo (($t2-$t1)*1000).'ms';