3v4l.org

run code in 300+ 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:
26.45 ms | 404 KiB | 5 Q