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

  1. <!doctype html>
  2. <html lang = "fr">
  3. <head>
  4.     <meta charset = "utf-8">
  5.     <title>Titre de la page</title>
  6. </head>
  7. <body>
  8.     <!-- contenu de la page web -->
  9.    <?php
  10.        /* echo "Hello World" ;  "affichage" d'Hello World */
  11.        $texte = "Hello World";
  12.        print $texte;
  13.     ?>
  14. </body>
  15. </html>
File Description
  • first_html
  • PHP Code
  • 28 Feb-2024
  • 302 Bytes
You can Share it: