fork(1) download
  1. <?php
  2.  
  3. function f(&$x) {
  4. $x = 1;
  5. }
  6.  
  7. function g($x) {
  8. $x = 2;
  9. }
  10.  
  11. $x = 0;
  12. echo $x;
  13. f($x);
  14. echo $x;
  15. g($x);
  16. echo $x;
Success #stdin #stdout 0.01s 24400KB
stdin
Standard input is empty
stdout
011