So XAMPP must add something to the Windows PATH.
This is not good for WAMPSevrer as it does NOT amend or need or like the PATH to be amended to contain a path to the php executable, because WAMPServer can have many versions of PHP installed waiting to be activated.
There is also no real need to have the php.exe folder on the PATH for anything, but some add it to make finding the PHP CLI easier.
I suggest you consider using
a little batch file like this and amend it a little to let you tell it to use either XAMPP's folders or WAMPServers folders
---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>Read The Manuals Apache --
MySQL --
PHP --
phpMyAdminGet your Apache/MySQL/mariaDB/PHP ADDONs here from the
WAMPServer alternate Repo-X-X-X-
Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-