消耗内存为什么会不同呢?
<?php
echo $m1 = memory_get_usage();
echo "<br />";
$var_string="123";
echo $m2 = memory_get_usage()-$m1;
echo "<br />";
$n=123;
echo $m3 = memory_get_usage()-$m1-$m2;
echo "<br />";
$f=123.00;
echo $m4 = memory_get_usage()-$m1-$m2-$m3;
echo "<br />";
$var_array=array("123");
echo $m5 = memory_get_usage()-$m1-$m2-$m3-$m4;
?>
这段代码,任务中显示消耗内存为:624056 328 288 288 632
而我执行出来的结果为:217672 320 272 272 576