<font face="NSimsun"><span style="color: #007700">for ( </span><span style="color: #0000bb">$i </span><span style="color: #007700">= </span><span style="color: #0000bb">1</span><span style="color: #007700">; </span><span style="color: #0000bb">$i </span><span style="color: #007700"><span style="color: #0000bb">100</span><span style="color: #007700">; </span><span style="color: #0000bb">$i</span></span></font><font face="NSimsun"><span style="color: #007700">++ ) {<br>
</span><span style="color: #0000bb">$str </span><span style="color: #007700">= </span><span style="color: #0000bb">str_repeat</span><span style="color: #007700">(</span><span style="color: #dd0000">'01234567'</span><span style="color: #007700">, </span><span style="color: #0000bb">$i</span></font><font face="NSimsun"><span style="color: #007700">);<br>
</span><span style="color: #0000bb">$a </span><span style="color: #007700">= </span><span style="color: #0000bb">memory_get_usage</span></font><font face="NSimsun"><span style="color: #007700">();<br>
unset(</span><span style="color: #0000bb">$str</span></font><font face="NSimsun"><span style="color: #007700">);<br>
</span><span style="color: #0000bb">$b </span><span style="color: #007700">= </span><span style="color: #0000bb">memory_get_usage</span></font><font face="NSimsun"><span style="color: #007700">();<br>
echo </span><span style="color: #dd0000">"n<br>" ></span><span style="color: #007700">.</span><span style="color: #0000bb">$i</span><span style="color: #007700">.</span><span style="color: #dd0000">': '</span><span style="color: #007700">.(</span><span style="color: #0000bb">$b </span><span style="color: #007700">- </span><span style="color: #0000bb">$a</span><span style="color: #007700">).</span><span style="color: #dd0000">' Bytes.'</span></font><font face="NSimsun"><span style="color: #007700">;<br>
}</span></font>