Getting Visual Studio Code to recognise my PHP installation - PHP - SitePoint Forums | Web Development & Design Community
debugging - How to run or debug php on Visual Studio Code (VSCode) - Stack Overflow
How to customize Visual Studio to php development?
PHP not found in VS Code - Stack Overflow
How do I debug PHP in VS Code?
What’s the best way to format PHP code?
How do I enable error reporting in VS Code?
Videos
So I've been using XAAMP to run PHP on my laptop and it works as it should. But it requires me to use a URL and then find the projects within the htdocs folder. I was wondering if there was something like Live Server that I could activate from Visual Studio and have it appear in the Web Browser.
I've done google searches on this already and it led me to download php extensions like php server and the php debugger extension.
However, I am a bit confused by these and what they do and I'm not sure if this is supposed to perform in a similar way that live server performs.
I've ran into issues though in getting VS Code to use the correct environmental variable. It keeps throwing an error that says the binaries couldn't be found or executed even though I have the path set in the json file to the folder holding the PHP related code.
I'm a bit confused and I'm also curious about whether or not what I'm trying to do is achievable or not.
Debugging PHP with VSCode using the vscode-php-debug extension
VSCode can now support debugging PHP projects through the marketplace extension vscode-php-debug.
This extension uses XDebug in the background, and allows you to use breakpoints, watches, stack traces and the like:

Installation is straightforward from within VSCode: Summon the command line with F1 and then type ext install php-debug
As far as I read about it today, you can't debug anything else than node.js, JavaScript and TypeScript at the moment, but they said they want to add new languages which you can debug. The editor is still in development. Nevertheless, I don't think there will be a php debugger in the future since php is serverside, so you can't debug it on your client alone.
If you want to debug php, I can recommend xDebug.
Updated:
Now, it is possible to debug with VS code. You need to install XDebug and php-debug extension for VScode.
Go to the PHP Server extension setting. There you have to add the path for:
PHP Config Path: C:\xampp\php\php.ini
PHP Path: C:\xampp\php\php.exe
[Make sure to add your installed folder, if you have installed xampp in another drive, you need to give that specific location.]
My settings:

Go to File->Preferences->settings->User settings tab->extensions->from the drop down select php->on the right pane under PHP › Validate: Executable Path select edit in settings.json.
Then set the path as your case may be for a XAMPP user who installed XAMPP on c drive you will have:
"php.validate.executablePath": "c:\\xampp\\php\\php.exe"
If PHP is installed in your system independently or by other means simply set the path of your php.exe file like below:
"php.validate.executablePath": "C://path.to.your.php.folder//php.exe"
Found this solution from php not found visual studio.