3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $callable = 'Foo::fooBar'; list($controller, $method) = is_array($callable) ? $callable : explode('::', $controller); var_dump($controller, $method);
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: controller in /in/5KCeb on line 5 Notice: Undefined offset: 1 in /in/5KCeb on line 5 string(0) "" NULL
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: controller in /in/5KCeb on line 5 Notice: Undefined offset: 1 in /in/5KCeb on line 5 string(0) "" NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: controller in /in/5KCeb on line 5 Notice: Undefined offset: 1 in /in/5KCeb on line 5 string(0) "" NULL