- var_dump: documentation ( source)
<?php
class Kitchen
{
protected $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);