3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myA { public function testA() { var_dump(is_callable(array($this, 'testB'))); } } class myB extends myA { public function testA () { return parent::testA(); } public function testB () { return; } } $a = new myA(); $b = new myB(); $a->testA(); $b->testA();

preferences:
40.83 ms | 402 KiB | 5 Q