In order to be able to edit code and get instant updates in the browser do so with Browser-Sync. It's a free app in Node Package Manager.
node -vnpm install -g browser-syncIf you are wishing to have a PHP page get the browser refresh treatment, you need to use the command to enable proxy mode. Browsersync will wrap your vhost with a proxy URL to view your site.
For a list of command type the help command into Power Shell: browser-sync start --help
In order get more commmand instructions go to the Browsersync docs.
browser-sync start --proxy "localhost/YourSiteFolder/working-file.php" --files "working-file.php, style.css"--reload-delay 500