3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo_3bff247b947881972492c5c53eb657bf { private function foo { return "foo"; } public function __invoke() { $a = array($this, "foo"); return $a(); } }; $a = new Foo_3bff247b947881972492c5c53eb657bf; echo $a();
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '{', expecting '(' in /in/r29XH on line 4
Process exited with code 255.