3v4l.org

run code in 300+ PHP versions simultaneously
<?php private $yummy = 'cake'; } $kitchen = new Kitchen(); $cake = & Closure::bind(function & () { return $this->yummy; }, $kitchen, $kitchen)->__invoke(); var_dump($reference); $reference = 'the cake is a lie!'; // stole it! var_dump($kitchen);
Output for 5.4.0 - 5.4.17, 5.5.0
Parse error: syntax error, unexpected 'private' (T_PRIVATE) in /in/sDd6W on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_PRIVATE in /in/sDd6W on line 3
Process exited with code 255.

preferences:
187.67 ms | 1395 KiB | 54 Q