PHP probably gets used in low-price shared hosting setups or managed hosting more than other languages, where those tells will show up because the developer can't change the Apache or PHP configuration files. And of course the big PHP numbers come from WordPress, which has its own tells. Developers don't necessarily choose WordPress -- the customer chooses it or starts with it and that's what developers have to work with.
More interesting to me than the actual breakdown by language is the reaction from developers when this article or something like it gets published. I look at PHP and every other language I've had to learn and use in my career (a lot of them, I started 40 years ago) as tools to get a job done. I don't get personally invested in languages or tools. I don't identify as a "PHP developer" or "Go developer" or "Javascript developer." I write code and manage systems to make money. What language or tools I decide to use (or more often have to use because someone got to decide already) makes little difference. PHP got popular because it was free (as opposed to ASP and ColdFusion, which were not) and was less inscrutable than Perl. As a long-time C programmer with experience on ASP, ColdFusion, and Perl I had no trouble learning PHP. I likewise had no trouble learning Ruby and Rails, Python, Javascript, and Go. All of those will eventually fade into the world of legacy tools, along with everything else I've learned and used. I don't care, I don't have any part of my personality or ego invested in them. I don't get how other developers get so invested, call themselves "Rust programmers" or whatever and then get hostile and defensive. I guess that's human nature -- I see Tesla owners identifying with their car brand, and I remember the cult around the Saturn cars. I interpret a lot of the apparent insecurity and hostility as inexperience, but it seems to go beyond that into a kind of programmer identity politics.
If PHP dominates public web sites, so what? That has no effect on what tools I choose to learn or use, or how I value my skills, or much of anything that I might care about. I read all the time about how many people use Python, how many jobs are out there for Python programmers, and that makes no difference to me. If I get a client using Python all I care about is solving their business problems and getting paid for my expertise, not what language I have to use.
I agree. I don't think this way either. And I wouldn't be bothered with someone telling me X or Y has the main marketshare on the web.
I just don't like when figures are thrown at me and the methodology is questionable. Would be the case for any topic.
> I don't get how other developers get so invested
That's because your investment is means-to-an-end. For others, such as DHH for example, their chosen language is a means of expression and consequently they have a very strong personal investment. The Ruby and Clojure communities, for example, largely consist of developers who have a very strong personal attachment to the language and that's understandable since these languages are much more expressive whereas a language like Java will tend to attract developers who see it merely as a tool and maybe use it because it is a market leader. Languages like Ruby and Clojure demand a broadening of the mind so tend to attract users who are looking for more in a language than the standard fare of Algol-based features.
More interesting to me than the actual breakdown by language is the reaction from developers when this article or something like it gets published. I look at PHP and every other language I've had to learn and use in my career (a lot of them, I started 40 years ago) as tools to get a job done. I don't get personally invested in languages or tools. I don't identify as a "PHP developer" or "Go developer" or "Javascript developer." I write code and manage systems to make money. What language or tools I decide to use (or more often have to use because someone got to decide already) makes little difference. PHP got popular because it was free (as opposed to ASP and ColdFusion, which were not) and was less inscrutable than Perl. As a long-time C programmer with experience on ASP, ColdFusion, and Perl I had no trouble learning PHP. I likewise had no trouble learning Ruby and Rails, Python, Javascript, and Go. All of those will eventually fade into the world of legacy tools, along with everything else I've learned and used. I don't care, I don't have any part of my personality or ego invested in them. I don't get how other developers get so invested, call themselves "Rust programmers" or whatever and then get hostile and defensive. I guess that's human nature -- I see Tesla owners identifying with their car brand, and I remember the cult around the Saturn cars. I interpret a lot of the apparent insecurity and hostility as inexperience, but it seems to go beyond that into a kind of programmer identity politics.
If PHP dominates public web sites, so what? That has no effect on what tools I choose to learn or use, or how I value my skills, or much of anything that I might care about. I read all the time about how many people use Python, how many jobs are out there for Python programmers, and that makes no difference to me. If I get a client using Python all I care about is solving their business problems and getting paid for my expertise, not what language I have to use.