fork(1) download
  1. <?php
  2.  
  3. $x = 1;
  4.  
  5. echo $x, PHP_EOL;
  6.  
  7. function foo() {
  8. $x = 2;
  9.  
  10. echo $x, PHP_EOL;
  11. }
  12.  
  13. foo();
  14.  
  15. echo $x, PHP_EOL;
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
1
2
1