3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $secondClosure = function () { return 42;}; $wrapper = function(Closure $closure) use ($secondClosure) { $secondClosure(); return $closure(); }; echo $wrapper(function(){ return 24;});