honestly I agree. although the lack of resource and funding (which could have mitigated the effects of this in the first place!) the fact is that PHP was someone's weekend project and a temporary fix to that person or use case, and it became an instantaneous permanent solution with all of the horrifying technical debt that came with it.
better yet, we keep reinventing the fucker with endless yaml templating systems lmao