3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = 'test'; $func = function($var) use ($var) { echo $var; }; $var = 'test2'; $func('yo');
based on eOll5
Output for 7.1.0 - 7.2.0
Fatal error: Cannot use lexical variable $var as a parameter name in /in/CuB6t on line 5
Process exited with code 255.
Output for 5.3.20 - 7.0.20
test