3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Test\Cases; function exec(\callable $call) {} exec(function() {return true;});
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected 'callable' (T_CALLABLE), expecting identifier (T_STRING) in /in/KU6Wh on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Catchable fatal error: Argument 1 passed to Test\Cases\exec() must be an instance of callable, instance of Closure given, called in /in/KU6Wh on line 6 and defined in /in/KU6Wh on line 4
Process exited with code 255.