3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

preferences:
36.37 ms | 402 KiB | 5 Q