3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?phpclass Foo { public function bar() { echo __METHOD__, "\n"; }}(new Foo())->bar();
Output for 5.4.0 - 5.4.32
<?phpclass Foo { public function bar() { echo __METHOD__, "\n"; }}(new Foo())->bar();