<?php
echo $m1 = memory_get_usage();
echo "<br />";
echo $m2 = memory_get_usage()-$m1;
echo "<br />";
echo $m3 = memory_get_usage()-$m1-$m2;
echo "<br />";
echo $m4 = memory_get_usage()-$m1-$m2-$m3;
echo "<br />";
echo $m5 = memory_get_usage()-$m1-$m2-$m3-$m4;
?>
怎么写
你要在echo<br />的下一行添加内容才行,你没有定义内容所以不会输出所占的内存大小,。比如定义一个变量$q=1;