3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = "New"; $closure = (function($bar) use ($foo) { echo "$foo $bar"; })("York"); ?>
based on VqOFK
Output for 7.0.0 - 7.3.0beta1
New York
Output for 5.6.0 - 5.6.28
Parse error: syntax error, unexpected '(' in /in/Zu8pu on line 6
Process exited with code 255.