fork(1) download
  1. <?php
  2.  
  3.  
  4. for ($investorAge = 16, $bill = 10000; $bill <= 1000000; $investorAge++){
  5. $bill += $bill*0.1;
  6. };
  7. echo "Age: $investorAge\n";
  8. echo "Bill: $".round($bill, 0)."\n";
  9. echo "Bill age: ".($investorAge-16)."\n";
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
Age: 65
Bill: $1067190
Bill age: 49