fork(1) download
  1. <?php
  2.  
  3. $_GET["id"] = 1;
  4.  
  5. function get_id() {
  6.  
  7. $var = "_GET";
  8.  
  9. return ${$var}["id"];
  10. }
  11.  
  12. echo get_id(), PHP_EOL;
Success #stdin #stdout #stderr 0.01s 82880KB
stdin
Standard input is empty
stdout

	
stderr
PHP Notice:  Undefined variable: _GET in /home/Tvtx25/prog.php on line 9