php 根据月数算到期时间

2025-04-23 20:14:27
推荐回答(1个)
回答1:

代码如下:
$long_str = "this is a test to see how much time md5 function takes to execute over this string";
// start timing from here
$start = microtime(true);
// function to test
$md5 = md5($long_str);
$elapsed = microtime(true) - $start;
echo "That took $elapsed seconds.\n";
?>
运行结果如下:
That took 7.1525573730469E-6 seconds.