<?php $x = undefined; $y = undefined; $$x = "a"; echo $$x; // -> "a" echo $$y; // -> "a" $$y = "b"; echo $$x; // -> "b" echo $$y; // -> "b" echo ${"undefined"}; // -> "b"
Standard input is empty
aabbb
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