fork(3) download
  1. <?php
  2.  
  3. function bar( &$var ) {
  4. return $var++;
  5. }
  6.  
  7. $b = 5;
  8. echo bar( $b ) .PHP_EOL; // Mostra 5 - valor do return
  9. echo $b .PHP_EOL; // Mostra 6 - valor do $b
  10.  
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
5
6