3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c = function(){echo "closure time!";}; class myClass{} $obj = new myClass; $c->call($obj);
based on B3J37
Output for 7.0.0 - 7.2.0
closure time!
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined method Closure::call() in /in/aWiHc on line 6
Process exited with code 255.