3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public function bar() { return function() { echo "in closure\n"; } } } $foo = new Foo();
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '}' in /in/rfSO4 on line 8
Process exited with code 255.