Although two days have passed already I'd like to add some remarks to your criticism on PHP.
Take a look at other languages, the situation is pretty much the same:
Regarding HTML and CSS: Years ago there were only tables and float layout. It was a pain to develop responsive layouts. Now flex and grid are available and the latter is a pleasure and easy. The usage of tables and float is limited to special situations.
One more example from python: Recently I tried to make myself familiar with asynchronous HTTP requests in python. I dived into a labyrinth of different approaches and libraries where it's difficult to find the latest and modern ones. Try it yourself and have fun.
Summary (maybe I'm repeating myself): Don't stick to the past, use recent techniques and you'll be happy.