fork download
  1. <?php
  2.  
  3. $foo = "SOpt";
  4.  
  5. function foo () {
  6. $var = "foo";
  7.  
  8. echo $$var, PHP_EOL;
  9. }
  10.  
  11. foo();
Success #stdin #stdout #stderr 0s 82880KB
stdin
Standard input is empty
stdout

	
stderr
PHP Notice:  Undefined variable: foo in /home/FH5jnx/prog.php on line 8