fork download
  1. <?php
  2.  
  3. class test{
  4. public $a;
  5.  
  6. }
  7.  
  8. function p($b)
  9. {
  10. $b = $b + 1;
  11. }
  12.  
  13. $struct = new test;
  14.  
  15. p($struct->a);
  16.  
  17. printf("%d", $struct->a);
  18.  
  19. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
Standard output is empty