3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?phpclass Foo { public function foo() { return 10; }}echo new Foo()->foo() * 2;
Output for 5.4.0 - 5.4.32
<?phpclass Foo { public function foo() { return 10; }}echo new Foo()->foo() * 2;