3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = count(get_defined_vars()); $b = 1; $c = get_defined_vars(); var_dump(array_slice($c, $a + 1));
Output for 4.3.0 - 7.2.0
array(1) { ["b"]=> int(1) }