You can use an "Apache server in a box", ie something like XAMPP or WAMP or whatever it's called nowadays and run an Apache web server with PHP locally, even if you're on Windows. There's no excuse to be a cowboy like that and edit on prod.
When you have to edit something different in a different site every day you can't do that because you would waste most of the time replicating the site locally.