I really love and enjoy PHP, i've been building amazing apps in PHP and using the Laravel framework too. What i also like about PHP is the OOP design i can use when building.
Is PHP dead like some people claim? Is it not gonna be useful in the future? Are there no mission critical systems built with PHP?
Modern PHP written against 7 and leveraging all the excellent tooling that exists is no worse than any other production code base.
As for PHP dying, not for a long time, there are vast amounts of systems out there still running PHP.
Much of the apparent loss of interest isnt because PHP numbers are declining it's because languages and frameworks exploded in numbers.
A case of a medium size fish in a much bigger pond.
Also not a single language becomes dead, at least in programming; it just becomes obsolete and not used, that's all.
Maybe they need to say the same thing for COBOL that "still runs the world in traditional banking, lots of large scale government systems, insurance and health care". [2]
[1] https://w3techs.com/technologies/overview/programming_language/all
[2] https://www.quora.com/To-what-extent-is-COBOL-still-being-used-in-2019
PHP is also a web language, very closely connected to HTML & related technologies, thing is that a lot of programmers today actually hate the web, that is why so many (frontend) frameworks try to hide the web technologies as much as possible.