- var_dump: documentation ( source)
<?php
function run()
{
static $some = null;
if ($some === null) {
$some = new stdClass;
}
return $some;
}
var_dump(run());
var_dump(run());
var_dump(run());
var_dump(run());
var_dump(run());