<?php $x=3;$y=4;$power=1; for($i=1;$i<=$y;$i++) $power=$power*$x; echo $x.' raised to the power '.$y.' = '.$power; ?>
Standard input is empty
3 raised to the power 4 = 81
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!