3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class User { public function __call($name, $args) { } } $a = ['id' => 'user', 'name' => 'cebe']; var_dump(is_callable($a)); var_dump(is_callable($a, true));
based on e6s2U
Output for 5.4.0 - 7.2.0
bool(false) bool(false)
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Pv79W on line 12
Process exited with code 255.