kodpol - 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 kodpol.php

  1. <!DOCTYPE html>
  2. <html>
  3.     <body>
  4.         <?php
  5. $txt= "hi world";
  6. $x = 5;
  7. $y = 10.5;
  8.  
  9. echo $txt ;
  10. echo "<br>";
  11.  
  12. echo $x;
  13. echo "<br>";
  14.  
  15. echo $y; 
  16. echo "<br>";
  17.  
  18. $sum = $x+$y;
  19. echo "summa = ",$sum ;
  20. echo "<br>";
  21.  
  22. $SQRT = $x*$y;
  23. echo "umnoj = ",$SQRT;
  24. echo "<br>";
  25.  
  26. $del = $x/$y;
  27. echo "delenie = ", substr("$del", 0, 5 );
  28. echo "<br>";
  29.  
  30. ?>
  31.     </body>
  32. </html>
File Description
  • kodpol
  • PHP Code
  • 14 Jun-2021
  • 354 Bytes
You can Share it: