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.02s 25600KB
stdin
<?php
      $x=3; $y=4;
      for($i=1;$i<=$y;$i++)
       { $x*=$i;
       <missing code>
       {
        echo $x," ", $y;}
       }
 ?>
stdout
3 raised to the power 4 = 81