3.6 KiB
PHP
PHP is the #12 most popular language according to the 2023 Stack Overflow Developer Survey.
Benchmarks
✅ PHP is one of the 19 languages in the MultiPL-E benchmark
✅ PHP is one of the 16 languages in the BabelCode / TP3 benchmark
✅ PHP is one of the 13 languages in the MBXP / Multilingual HumanEval benchmark
❌ PHP is not one of the 5 languages in the HumanEval-X benchmark
Datasets
✅ PHP makes up 183.19 GB of The Stack dataset
✅ PHP makes up 61.41 GB of the CodeParrot dataset
✅ PHP makes up 64 GB of the AlphaCode dataset
❌ PHP is not included in the CodeGen dataset
✅ PHP makes up 13 GB of the PolyCoder dataset
Stack Overflow & GitHub presence
PHP has 1,462,608 tagged questions on Stack Overflow
PHP projects have had 2,550,461 PRs on GitHub since 2014
PHP projects have had 2,286,391 issues on GitHub since 2014
PHP projects have had 9,196,172 pushes on GitHub since 2014
PHP projects have had 4,036,079 stars on GitHub since 2014
Anecdotes from developers
I've tried Chat GPT as I've seen some Youtube videos where people act in amazement while saying, "wow! This s amazing, I just give ChatGPT a class and it gives me all the unit tests for it within seconds! Total game changer!". Yeah, doesn't work worth a shit, at least not for me. It'd easier to just write the unit tests than refactor what Chat GPT gave me.
I am under the impression that the update frequency of PHP libraries has gone down since ChatGPT was released. My interpretation is, that many companies and developers are looking deeply into the AI stuff. And that is not in favor of PHP so that the attention is moving away from PHP solutions (at least temporarily). Once the AI dust has settled we will see the real impact AI has on the PHP market. Anything else what might be relevant was already posted by other members here, so I won't go there.
Might not be the answer you're looking for but it probably wouldn't be hard to write your own PHPCS sniff for it. Edit: Here is ChatGPT going over how you'd write a sniff for it. I haven't tested it so you might need to modify it a little bit to get it working.