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