3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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.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.