3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Router { private function dispatch() { return is_callable('handleHuman'); } private function handleHuman() { echo 'Human Handled'; } } $router = new Router; $router->dispatch();
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to private method Router::dispatch() from context '' in /in/7R9li:17 Stack trace: #0 {main} thrown in /in/7R9li on line 17
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to private method Router::dispatch() from context '' in /in/7R9li on line 17
Process exited with code 255.