3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function another() { echo "hello another"; $this->bingo(); } protected function test() { return 'pass'; } function bingo() { echo "talk"; } } class B extends A { public function run() { return $this->test(); } } $b = new B(); $b->another(); var_dump($b->run());

preferences:
31.58 ms | 402 KiB | 5 Q