3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private function myMethod() { var_dump('asdf'); } } class Bar extends Foo { private function myMethod() { parent::myMethod(); } public function getThing() { $this->myMethod(); } } $bar = new Bar(); $bar->getThing();

preferences:
36.41 ms | 402 KiB | 5 Q