3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { public function bar() { echo __METHOD__ . "\n"; return (object); } public function test() { return $this; } } $f = new foo(); echo $f->bar()->{'foo::test'}; echo $f->test()->title;