title: List all PHP variables
body: <p>Is it possible to dump all global variables in a PHP script? Say this is my code:</p>
  
  <pre><code>&lt;?php
  $foo = 1;
  $bar = "2";
  include("blah.php");
  dumpall();
  // displays $foo, $bar and all variables created by blah.php
  </code></pre>
  
  <p>Also, is it possible to dump all defined constants in a PHP script.</p>