fork download
  1. <?php
  2.  
  3. $x = undefined;
  4. $y = undefined;
  5. $$x = "a";
  6.  
  7. echo $$x; // -> "a"
  8. echo $$y; // -> "a"
  9.  
  10. $$y = "b";
  11.  
  12. echo $$x; // -> "b"
  13. echo $$y; // -> "b"
  14.  
  15. echo ${"undefined"}; // -> "b"
  16.  
Success #stdin #stdout #stderr 0.02s 20568KB
stdin
Standard input is empty
stdout
aabbb
stderr
PHP Notice:  Use of undefined constant undefined - assumed 'undefined' in /home/rdMEa3/prog.php on line 3
PHP Notice:  Use of undefined constant undefined - assumed 'undefined' in /home/rdMEa3/prog.php on line 4