fork(1) download
  1. <?php
  2. function f1()
  3. {
  4. $first = 10;
  5. function f2()
  6. {
  7. $second = $first + 10;
  8. return $second;
  9. }
  10. $t = f2();
  11. return $t;
  12. }
  13. var_dump(f1());
Success #stdin #stdout #stderr 0.02s 24448KB
stdin
Standard input is empty
stdout
int(10)
stderr
PHP Notice:  Undefined variable: first in /home/la7rq7/prog.php on line 7