3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseController{ public function __call(){ if (method_exists($this, "Action")) { } else if (method_exists($this, "DefaultAction")) { if ($this->DefaultAction()){ } exit; } } } class TestPage extends BaseController{ private function DefaultAction(){ return false; } } $testpage = new TestPage(); $testpage->Show();
Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
Fatal error: Method BaseController::__call() must take exactly 2 arguments in /in/O0n2j on line 11
Process exited with code 255.

preferences:
177.56 ms | 1395 KiB | 66 Q