3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function make() { class Foo { public function getClass() { function Boo {} return [__CLASS__, __METHOD__, __FUNCTION__]; } } return new Foo(); } $foo = make(); var_dump($foo->getClass());
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '{', expecting '(' in /in/JrWUC on line 8
Process exited with code 255.