The issues of PHP were because there was a standard as C wrapper and PHP own standards.
Also, the ways of patching PHP in the early versions…
JS is a totally different case. In the early years, each browser implements its own feature without comparing the style…