3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bar = 'baz!'; $func = function() use ($bar) { echo $bar; }; $func();
Output for 5.6.0 - 7.3.0beta1
baz!