- var_dump: documentation ( source)
- memory_get_peak_usage: documentation ( source)
- md5: documentation ( source)
<?php
class Foo
{
var $boo;
function Foo()
{
$this->boo = md5('foo');
}
function go()
{
echo $this->boo . PHP_EOL;
}
}
$a = new Foo();
$a->go();
var_dump(memory_get_peak_usage());