3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); interface I { function foo(); static function bar(); } class C implements I { public function foo() { echo "foo\n"; } public static function bar() { echo "bar\n"; } public function test() { $this->foo(); self::bar(); } } $c = new C(); $c->test();

preferences:
50.16 ms | 402 KiB | 5 Q