The choice of language/tech to use for a task usually comes down to
- your (own/team’s) familiarity with the languages being considered
- how well the language/tech fits your use-case (libraries available, language features focused on your kind of data handling)
PHP isn’t designed as an always-on language. It’s designed for a web server to run per-request, like Common Gateway Interface scripts.