11 - 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.



Your result can be seen below.

Result of php executing





Full code of 11.php

  1. <! Doctype html/>
  2. <html>
  3.     <body>
  4. <?php
  5. $txt = "Hello World!";
  6. $x = 5;
  7. $y = 10.5;
  8. echo $txt;
  9. echo "<br>";
  10. echo $x;
  11. echo "<br>";
  12. echo $y;
  13. echo "<br>";
  14. $sum = $x + $y;
  15. echo "amount = ".$sum;
  16. echo "<br>";
  17. $SQRT = $x * $y ;
  18. echo "multiply = ".$SQRT;
  19. $div = $x / $y;
  20. echo "<br>";
  21. echo "division = ".$div;
  22. ?>
  23. </body>
  24. </html>
File Description
  • 11
  • PHP Code
  • 14 Jun-2021
  • 320 Bytes
You can Share it: