3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = function () {}; $bar = (array)$foo; var_dump($bar);
based on 8LAoD
Output for 5.3.21 - 7.2.0
array(1) { [0]=> object(Closure)#1 (0) { } }