background image

67: -552 Bytes. 
68: -560 Bytes. 
69: -568 Bytes. 
70: -576 Bytes. 
71: -584 Bytes. 
72: -592 Bytes. 
73: -600 Bytes. 
74: -608 Bytes. 
75: -616 Bytes. 
76: -624 Bytes. 
77: -632 Bytes. 
78: -640 Bytes. 
79: -648 Bytes. 
80: -656 Bytes. 
81: -664 Bytes. 
82: -672 Bytes. 
83: -680 Bytes. 
84: -688 Bytes. 
85: -696 Bytes. 
86: -704 Bytes. 
87: -712 Bytes. 
88: -720 Bytes. 
89: -728 Bytes. 
90: -736 Bytes. 
91: -744 Bytes. 
92: -752 Bytes. 
93: -760 Bytes. 
94: -768 Bytes. 
95: -776 Bytes. 
96: -784 Bytes. 
97: -792 Bytes. 
98: -800 Bytes. 
99: -808 Bytes. 
 
我们先看一个例子

 

一览

php 代码如下:

 
<?php 

$s

=

str_repeat

('1',255); 

//产生由 255 个 1 组成的字符串 

$m

=memory_get_usage(); 

//获取当前占用内存 

unset(

$s

); 

$mm

=memory_get_usage(); 

//unset()后再查看当前占用内存 

echo

 

$m

-

$mm

?>