3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function v(){ $x = 5; return function ($x){ echo $x; }; } $func = v();
based on rK6uX
Output for 5.3.21 - 7.2.0