php time() 和 $_SERVER['REQUEST_TIME']

time() 和 $_SERVER['REQUEST_TIME']效率

结果:(其中之一)

结论:

time() : 执行时间在0.10 - 0.30 之间

$_SERVER['REQUEST_TIME'] : 执行时间在0.02 - 0.08 之间

$_SERVER['REQUEST_TIME'] 的执行时间更少更稳定

猜你喜欢

转载自www.cnblogs.com/peipeiyu/p/11532665.html