ew - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of ew.php
- <!Doctype html>
- <html>
- <body>
- <table>
- <?php
- $x = 5;
- $y = 10;
- echo '1) X = ', $x;
- echo "<br>";
- echo '2) Y = ', $y;
- echo "<br>";
- echo '3) Sum = ', $x+$y;
- echo "<br>";
- echo '4) !Sum = ', $x-$y;
- echo "<br>";
- echo '5) Pow X = ', pow($x,2);
- echo "<br>";
- echo '6) Pow Y = ', pow($y,2);
- echo "<br>";
- echo '7) Mult = ', $x*$y;
- echo "<br>";
- echo "8) Devide = ", substr($x/$y,0,5);
- echo "<br>";
- echo '9) Sqrt x+y = ', substr(sqrt($x+$y),0,5);
- echo "<br>";
- echo '10) Sqrt x = ', substr(sqrt($x),0,5);
- echo "<br>";
- echo '11) Sqrt y = ', substr(sqrt($y),0,5);
- echo "<br>";
- ?>
- </table>
- </body>
- </html>
- p