Learn how to install PHP on Windows (without XAMPP).
Go to the official PHP site:
https://windows.php.net/download
Download the latest Thread Safe Zip version (for example, PHP 8.x for Windows).
C:\phpC:\phpWin + S, search “Environment Variables”, and open it.Path, then click Edit.C:\php

php -v
PHP 8.x.x (cli) ...
C:\php, you’ll find:
php.ini-developmentphp.ini-productionphp.iniextension=mysqli for MySQL).test.php with:
<?php
echo "PHP is working!";
?>
php test.php
OR run a local web server:
php -S localhost:8000
Then open http://localhost:8000 in a browser.