3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function bar() { // Do something conditionally if a child class has implemented a certain method. if (is_callable('static::methodName')) { static::methodName(); } } } (new Foo())->bar();

preferences:
21.08 ms | 1236 KiB | 5 Q