- var_dump: documentation ( source)
- get_defined_vars: documentation ( source)
- array_slice: documentation ( source)
<?php
// Start
$a = count(get_defined_vars());
/* Your script goes here */
$mystring = null;
// End
$c = get_defined_vars();
var_dump(array_slice($c, $a + 1));