- var_dump: documentation ( source)
- phpinfo: documentation ( source)
<?php phpinfo();
class Kitchen
{
private $yummy = 'cake';
}
$kitchen = new Kitchen();
$cake = & Closure::bind(function & () { return $this->yummy; }, $kitchen, $kitchen)->__invoke();
var_dump($cake);
$cake = 'the cake is a lie!'; // stole it!
var_dump($kitchen);