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:
23.38 ms | 475 KiB | 4 Q