3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Controller { public function testAction() { } public static function staticAction() { } public function __call() { } } $calls = array( array('Controller', 'testAction'), array('Controller', 'staticAction'), array('Controller', 'fooAction'), array(new Controller, 'testAction'), array(new Controller, 'staticAction'), array(new Controller, 'fooAction'), ); foreach($calls as $call) { var_dump(is_callable($call)); }
Output for 5.3.0 - 5.4.8
Fatal error: Method Controller::__call() must take exactly 2 arguments in /in/oLumG on line 18
Process exited with code 255.