3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array['test'] = function () {echo'1';}; $array['test']->call(new StdClass);
based on vZnnv
Output for 7.0.0 - 7.2.6
Warning: Cannot bind closure to scope of internal class stdClass in /in/md5mU on line 4
Output for hhvm-3.15.4
1
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined method Closure::call() in /in/md5mU on line 4
Process exited with code 255.