Xampp With Php - 7.4 -
<?php echo "Hello, World!"; ?> Save this file as test.php in the C:\xampp\htdocs directory on Windows or /opt/lampp/htdocs on macOS/Linux. Open a web browser and navigate to http://localhost/test.php . You should see the output "Hello, World!".