visual studio code - XAMPP ; PHP not available in console for non-admin users

one text

Solution:

If you want PHP executables to available for all your users you need to set the PATH in SYSTEM VARIABLES.

Please check by going to the system properties screen (Win+Pause/Break) and then Select Advanced System Settings -> Advanced

And add your path C:\Xampp\php\ to the path list as shown in this picture.

Path on Windows

Source