Why is PHP So Slow On Windows?Posted on Oct 25th, 2021 by Lynn
Are you spending hours trying to figure out why your PHP code runs super slowly on your Windows machine, only to see it run just fine when you deploy it to your server? Are you tearing your hair out trying to get a relatively complex app to so much as return a response without timing out?
This is an easy problem to get caught by because, while PHP supports Windows natively, it's really slow on Windows compared to other platforms — which gets all the more apparent if you're e.g. running a framework in development mode, you have things like XDebug and other extensions enabled, and so on.
To an extent, this is also only one symptom of a broader issue, which is that because most programmers use *nix operating systems (macOS, Linux, etc.) rather than Windows, the development experience of even popular tools can often be subpar or even entirely broken on Windows. Windows support just isn't a priority for many projects.
Sign up for our newsletter
Get more content like this delivered straight to your inbox.
We'll never send you spam or share your email.