3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SubClass extends BaseClass { } abstract class BaseClass { public function __call($name, $arguments) { return $this->$name(); } public function foo() { return 'foo'; } protected function bar() { return 'bar'; } private function foobar() { return 'foobar'; } } $test = new SubClass(); var_dump($test->foo()); var_dump($test->bar()); var_dump($test->foobar());

preferences:
83.67 ms | 407 KiB | 5 Q