3v4l.org

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

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
154.88 ms | 3331 KiB | 9 Q