- var_dump: documentation ( source)
- spl_object_hash: documentation ( source)
<?php
class Thing {
public function stuff() {
$lamda = function() {
static $y;
$y++;
};
var_dump(spl_object_hash($lambda));
}
}
$x = new Thing();
$x->stuff();
$x->stuff();