In languages, once you build a system, you might maintain it for another 20 years. After the creation point, it is updates, refinements, fixes, feature additions. Rarely does one change the language and rewrite from scratch. That almost never gets approved by management. Thus in all statistics of programming language use you will see very old languages persisting. This is why COBOL still shows up in the lists, even though nobody starts a new project in COBOL. I argue that PHP has a lot of inherited code, and that people starting projects today are much less likely to select PHP in 2020 than they did in 2010. So i guess dying is too strong a word. The more accurate description is that the birth rate of PHP projects has been dropping, and that fewer people myself included are selecting it for those somewhat rare cases of a "from scratch" project. Python is increasing in birth rate, and many preprocessor languages for JS are also increasing.
These charts of programming language popularity are more like the census of past design wins. This keeps the newer entrants down in statistics, making them look risky, when in reality using a crappy tool from decades ago is a guarantee of mediocre productivity, so isn't that a risk also?