<?php class Foo { public static function bar() { return isset($this) ? 'x' : 'y'; } } var_dump(Foo::bar()); var_dump((new Foo)->bar());
You have javascript disabled. You will not be able to edit any code.