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

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>METANIT.COM</title>
  5. <meta charset="utf-8" />
  6. </head>
  7. <body>
  8. <h1>
  9. <?php
  10. echo "Первый сайт на PHP";
  11. ?>
  12. </h1>
  13. <div>
  14. <?php
  15. echo "<h2>Заголовок параграфа</h2>";
  16. echo "Текст параграфа";
  17. ?>
  18. </div>
  19. </body>
  20. </html>
File Description
  • 12
  • PHP Code
  • 12 Sep-2021
  • 305 Bytes
You can Share it: