3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { public function x() { return 'x'; } public function y() { return function() { return $this->x() }; } } $test = new Test(); $test->y();
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected '}' in /in/hQHhF on line 4
Process exited with code 255.