Install PHP
Verify PHP is installed with `php -v`
Save your code in a `.php` file
Run the file from the command line with `php filename.php`
Start the built-in server with `php -S localhost:8000`
Open `http://localhost:8000` in a browser
Place the PHP file in your web server’s document root
Configure Apache or Nginx with PHP support
Restart the web server if needed
Use a PHP framework or local development stack if required
