3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = function () { $foo = 'hello world'; }; var_dump($foo);
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
object(Closure)#1 (0) { }
Output for hhvm-3.15.4
object(Closure$;710492603$9b2a48a576fb4386d128eb063e5e501b$)#1 (0) { }