Instead of installing an old XAMPP globally, consider switching to .
Instead, you need to navigate to the (SourceForge). Step 2: Download the correct archived version XAMPP stopped including PHP 7.4 by default starting with version 8.0.0 . Therefore, you need the last version that still bundled PHP 7.4. download xampp with php 7.4
download-xampp-php-7-4
The catch? The official XAMPP installer on the Apache Friends homepage now ships with PHP 8.0 or higher. If you install that, your old code might throw "Deprecated" errors or simply white-screen. Instead of installing an old XAMPP globally, consider