fork download
  1. <?php
  2.  
  3.  
  4. $x=3;
  5. $y=4;
  6. $power=1;
  7.  
  8. for($i=1;$i<=$y;$i++)
  9. $power=$power*$x;
  10. echo $x.' raised to the power '.$y.' = '.$power;
  11.  
  12. ?>
Success #stdin #stdout 0.03s 25916KB
stdin
Standard input is empty
stdout
3 raised to the power 4 = 81