Modern PHP may as well be a new language. But then node came along. It's almost like PHP users couldn't stand a clean ecosystem.
The state of JS is maddening, whoever spit on PHP but love JS will need to explain why an hello world from create react app has 800 dependencies in the node_modules, why do we keep using babel when most browser is already supporting es6 fine and why do we have some many way to import modules. PHP had its issues which got fix over time but we can't say the same with JS.
Dude, Node is as broken as PHP. And it starts from having no standard library leading to hell like leftpad and general software supply chain holes that PHP never had in the same quantity.
It isn't clean. Node was just shinier and had more applications to leveraging it for a shiny frontend.