fork download
  1. <?php
  2.  
  3. for ($i = 0; $i <= 10; $i++){
  4. $sum = $i * $i;
  5. echo "\n$i * $i = $sum";
  6. }
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
0 * 0 = 0
1 * 1 = 1
2 * 2 = 4
3 * 3 = 9
4 * 4 = 16
5 * 5 = 25
6 * 6 = 36
7 * 7 = 49
8 * 8 = 64
9 * 9 = 81
10 * 10 = 100