3v4l.org

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