3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $aa = 'str2'; function doom(){ $a = 'str'; $b = 2; return print_r(get_defined_vars(),true); } echo doom();
based on vHrqP
Output for 4.3.0 - 7.2.6
Array ( [a] => str [b] => 2 )