fork download
  1. <?php
  2.  
  3. // your code goes here
  4. echo test (1);
  5. function test ($a) {
  6. echo $a . "<br>";
  7. if ($a == 10) {
  8. //echo $a-$a;
  9. return $a-$a;
  10. }
  11. $a++;
  12. test ($a);
  13. }
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>