PHP is still one of the most popular programming languages in the world. According to W3Techs, PHP is used by 79.1% of all websites whose server-side programming language is known. This makes it the most popular server-side programming language by far.
Furthermore, PHP is still actively developed and maintained. The latest version of PHP, 7.4, was released in November 2019 and is the most up-to-date version of the language.
In addition, PHP is used by many popular content management systems (CMS) such as WordPress, Drupal, and Joomla. This means that many websites are built using PHP, and it is likely to remain popular for the foreseeable future.
Overall, PHP is still alive and kicking. It is one of the most popular programming languages in the world and is actively developed and maintained. Therefore, it is safe to say that PHP is not dead.
You’ve probably heard about how the new WordPress Gutenberg editor brings block-based editing to WordPress.
So…is it? Should we call the funeral home and start the preparations? Well, first off, it’s important to point out that there’s a big difference between wanting PHP to be dead and PHP actually being dead.
People have been calling for the death of PHP for years now (you can find “Is PHP Dead?” posts as far back as 2011). And yet, PHP still persists…
In this post, we’ll dig into the data and show how PHP isn’t close to being dead (even if you really wish it were).
Is PHP Dead? Only if You Ignore the PHP Usage Statistics
Ok, PHP might not be the best or the most modern programming language. But that doesn’t mean it’s dead, and it’s pretty tough to argue with the PHP statistics here…
First off, let’s look at what W3Techs has to say.
According to W3Techs’ data, PHP is used by 78.9% of all websites with a known server-side programming language. So almost 8 out of every 10 websites that you visit on the Internet are using PHP in some way. Which leads us to this fact…
To be fair, that number is declining. In November 2017, W3Techs had PHP as the server-side language for 80.1% of websites. That number dropped to 79.6% in June 2018, and now it’s down to 78.9% when we’re publishing this post in November 2018.
However, you also have to take some of the statistics with a grain of salt. Some of these scanning tools simply look for the
X-Powered-By HTTP header. Some hosting providers, including Kinsta, remove these headers from broadcasting on the server for security purposes. Therefore, the number of sites using PHP could, in fact, be higher.
But when the number is still over 75%, it’s tough to use that decline to pronounce PHP as dead.
These numbers really shouldn’t be surprising if you think about it. First off, WordPress, the most popular content management system in existence, uses PHP. Given that WordPress powers over 34% of all the websites on the Internet, that’s a lot of sites using PHP right there. Want to know which PHP version are you running? Check out our guide on how to create a phpinfo page.
But it’s not just WordPress, either. There are tons of other big and small sites built with PHP. For example, MediaWiki, the software behind Wikipedia, is written in PHP. And oh yeah, both Drupal and Joomla use PHP, too.
PHP Is Faster and Better Than Ever, Too
With the latest versions of PHP, PHP is faster than ever. Our recent PHP benchmarks show a huge performance increase for PHP 7.X over PHP 5.6.
In our tests using WordPress and popular eCommerce plugins like WooCommerce and Easy Digital Downloads, PHP 7.3 was pushing 2-3x the number of requests per second as PHP 5.6. And PHP 8.1 which Kinsta made available recently is even faster.
Better yet, PHP 7 also stacks up favorably against other languages, as well.
Beyond that, PHP 7.X versions also bring new improvements for developers like:
- Combined comparison operator
- Null coalesce operator
- New type hinting
- Anonymous classes
- Nullable types
- Iterable and void returns
- Multi-catch exception handling
- Keys usable in lists
- Trailing commas
- More negative string offsets
- Number operators and malformed numbers
- HTTP/2 server push
Of course, you’ll only notice these improvements if you’re actually using the latest version of PHP. Unfortunately, that’s often not the case.
According to WordPress.org, ~64.0% of WordPress sites are using PHP 7.1 or lower, with 22.9%, the plurality, using PHP 5.6:
PHP versions 7.1 and under no longer receive active support and lost security support as of 2018 and 2019.
The fact that so many websites are running on a PHP version that’s officially reached its end of life probably doesn’t help PHP’s reputation with developers.
Read this post if you’re still not sure why you need to update your PHP version.
It’s Easy to Find PHP Developers
Because of PHP’s popularity, it’s easy to find PHP developers. And not just PHP developers – but PHP developers with experience.
More importantly, PHP developers themselves seem to be doing just fine, as this Tweet from Brandon Savage so eloquently points out:
If PHP is dead someone forgot to tell my bank account.
— Brandon Savage (@brandonsavage) October 28, 2018
For newer frameworks, it’s harder to find developers, especially ones with experience.
More importantly, sometimes experience just flat out isn’t possible without a time machine. For a humorous take on it, there’s this Reddit post where a job description wanted a React developer with 5 years of experience back in 2017, at which point React had only been around for ~4 years.
Besides finding. a PHP developer it is relatively easy to learn the language. To help you we collected together some of the best free and premium PHP tutorials in this post. Happy learning!
You Don’t Have to Like PHP, But It’s Not Dead
You might not like PHP. Heck, even though we’re an application, database, and managed WordPress host, we’d be lying if we said all of our developers love PHP.
Bjarne Stroustrup, the creator of C++, has a pertinent quote here:
There are only two kinds of languages: the ones people complain about and the ones nobody uses.
Yes, PHP does seem to be losing some steam according to W3Techs’ data. But even if PHP keeps decreasing at the same rate, it would take 25+ years before PHP even dropped under the 50% mark!
In the end, all of these posts about “Is PHP Dead?” are really just examples of Betteridge’s law of headlines – “Any headline that ends in a question mark can be answered by the word no.”
What do you think? Is PHP dead? Do you love PHP? Do you wish you could smother PHP with a pillow? Let us know in the comments!
Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:
- Easy setup and management in the MyKinsta dashboard
- 24/7 expert support
- The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
- An enterprise-level Cloudflare integration for speed and security
- Global audience reach with up to 35 data centers and 275 PoPs worldwide
Get started with a free trial of our Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.