Just install Windows 7. and XAMPP.
This problem is quite questioned and solved, but in the stack version in English, I put here the translation just in case.
Before installing VC ++ check the updates on your computer as follows. 1. Go to start - Control Panel - Windows Update 2. Check for updates. 3. Install all available updates. 4. Reboot the system.
If you already did, now follow these steps.
Download Visual C ++ Redistributable 2015
Visual C ++ Redistributable for Visual Studio 2015 (64-bit)
Visual C ++ Redistributable for Visual Studio 2015 (32-bit)
(Reinstall if it is already installed) then restart your computer or use windows updates for automatic download.
download link link .
credits: Vilthering user of stackoverflow English version. link