3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { function bar() { echo isset($this) ? 'Instance' : 'Class', "\n"; } } class Baz { function test() { //Foo::bar(); } } // Take care: $baz = new Baz; $baz->test();
Output for 4.3.0 - 7.1.7