One thing you can say for PHP is that itâs persistent. Like many long-standing programming languages, itâs often maligned by developers who would like to see a shift to newer candidates, yet it also maintains many supporters and practitioners, serving as a reminder of C++ inventor Bjarne Stroustrupâs wise words:
There are only two kinds of languages: the ones people complain about and the ones nobody uses.
First created in 1993 to enhance the webpage of programmer Rasmus Lerdorf, PHP didnât originate as a new programming language and as such it developed organically. It has continued to adapt across its three decades of existence and even the name PHP has evolved, coming to stand for hypertext preprocessor rather than the original meaning, personal home page.
And while the web has changed a lot in 30-plus years, PHP has persisted along with it and continues to be actively supported and regularly updated. The most recent version, 8.3, arrived late last year as the latest in a string of annual releases.
Where developers have run up against limitations of PHP, they have successfully found workarounds. The most famous example being Facebookâs team, who had to find a way to adapt PHP to the dramatic scaling of their social network from thousands of users to millions, tens of millions, and then billions. Facebookâs development team created their own dialect of PHP to soothe the growing pains and work at scale.
To this day, Facebook continues to use PHP, as does Microsoft, Etsy, WordPress, MailChimp and Wikipedia. In fact, according to W3Techs,
PHP is used by 76.5% of all the websites whose server-side programming language we know.
Alternatives such as ASP.net, Ruby, Java, and JavaScript donât even come close to this share of the market. While these rival languages see a higher frequency of use in high-traffic websites, PHP is still the dominant language across more than 60% of the worldâs top 1,000 websites.
Though these figures continue to assert PHPâs dominance over server-side scripting, it is starting to see a gentle decline. But, when a language is used across more than three-quarters of the web, even a trending shift away from its use would take years to affect the rankings.
And so, PHP maintains its relevance through widespread use, but there are other reasons for its continued popularity. Itâs open source, and many years of use means there is an extensive community and comprehensive body of resources to support developers in its use and troubleshooting. Itâs also relatively easy to learn and, for many developers, their first foray into web programming will have involved PHP.
However, being an old, accessible language can have its disadvantages too. With inexperienced users able to cobble together websites using old tutorials and a little bit of knowledge (a dangerous thing), youâre bound to see issues, particularly with site security. And so, PHP sites continue to be a target of hackers hoping to hit upon an old, unsupported version.
Worryingly, according to WordPress stats, the majority (more than 44%) of its sites are using version 7.1 of PHP, for which support ended in 2019. This is one of the most common complaints levelled against PHP, along with the inconsistencies in the language due to its organic development.
If youâre working with PHP, you need to be keeping up with the new releases so as not to contribute to this souring of its reputation. You would also want to learn to work with its supporting frameworks, such as Laravel and Symfony. Indeed, many job postings for PHP developers will ask for skills in both.
For example, this post seeking a lead PHP developer in Frankfurt specifically asks for knowledge of PHP versions from 8 onwards. Another developer role at IT consultancy CGI expects its PHP programmer to work with Symfony and Drupal, a content management system thatâs written in PHP.
Jobs in PHP continue to be relevant and will be as long as it remains among the worldâs most-used programming languages. And, despite some loud detractors, most developers admire PHP. In the most recent annual survey from Stack Overflow, PHP was identified as highly âadmiredâ by respondents, meaning those who work with PHP would like to continue to do so.
And for those who stay abreast of the latest in PHP, itâs becoming used more and more in progressive web applications, the Internet of Things, as well as artificial intelligence and machine learning, the fastest-growing sector in tech right now. This flexibility and versatility mean PHP developers can enjoy variety in their work, especially if they find a role working across many projects such as this one with German digital agency Denkwerk, one of 2024âs âGreat Places to Workâ.
Articles signalling â or even calling for â PHPâs death knell have a history almost as long as the language itself. Nevertheless, PHP persists. It dominates our web experience and continues to be picked up and enjoyed by new generations of developers.
The revised acronym assigned to the personal home page code that became a scripting language doesnât quite fit â perhaps it should be known as persistent hypertext pre-processor.