3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseController{ public function __call(string $Action, array $Data){ if (method_exists($this, $Action . "Action")) { } elseif (method_exists($this, "DefaultAction") and $this->DefaultAction($Action, $Data)) { exit; } } } class TestPage extends BaseController{ private function DefaultAction(string $Action, array $Data){ return false; } } $testpage = new TestPage(); $testpage->Show();

preferences:
47.59 ms | 402 KiB | 5 Q