โค้ดเต็มสำหรับการเริ่มใช้งาน PHP

ตามที่อธิบายไว้ โค้ดเต็มสำหรับ การเรียกใช้สคริปต์ PHP จะมีลักษณะดังนี้:

index.php<meta charset="utf-8">
<?php
  error_reporting(E_ALL);
  ini_set('display_errors', 'on');
  mb_internal_encoding('UTF-8');
  
  echo 'my first program';
?>