3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 1; function foo() { $y = 2; $q = 3; $z = get_defined_vars(); var_export($z); } foo();
Output for 4.3.0 - 7.3.0rc4
array ( 'y' => 2, 'q' => 3, )