3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array['test'] = function () {echo'1';}; $array['test']->call(1);
based on tYZQM
Output for hhvm-3.15.4, 7.0.0 - 7.2.6
Warning: Closure::call() expects parameter 1 to be object, integer given in /in/vZnnv on line 4
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined method Closure::call() in /in/vZnnv on line 4
Process exited with code 255.