Benjamin Crozat The web developer life

Is PHP dead? Usage statistics for 2022.

Benjamin Crozat's avatar. Benjamin Crozat2 minutes read

Before you start reading this article, did you know 66 persons subscribed to my newsletter?

Join them and enjoy free content about the art of crafting websites!

Is PHP dead? Usage statistics for 2022.
Table of contents

In 2022, PHP is the most used server-side scripting language with more than 77% market share overall, according to W3Techs.

Language Usage in October 2022
PHP 77.4%
ASP.NET 7.5%
Ruby 5.6%
Java 4.5%
Scala 2.7%
JavaScript 2.2%
Static files 1.8%
Python 1.4%
ColdFusion 0.3%
Perl 0.1%
Erlang 0.1%

Whenever you hear someone telling you “PHP is dead”, ignore them and look at the data.

CMS marketshare in 2022

The most used CMS in 2022 is WordPress.

Demand for content management systems (CMS) is exploding. Businesses always need to reach new customers through SEO, and a good CMS is mandatory for that. This trend will likely never fade.

I’m not surprised that WordPress is so popular. It’s an always-evolving CMS, there are plenty of great WordPress hosts (such as Kinsta) and it has a lot of excellent themes and plugins to help you reach your goals.

Also, if you ever want to switch away from WordPress, most alternatives offer tools to import every post you already wrote. That means WordPress is a safe choice to begin with.

CMS Market share in October 2022
WordPress 64.3%
Shopify 6.1%
Wix 3.4%
Squarespace 2.9%
Joomla 2.4%
Drupal 1.8%
Adobe Systems 1.6%
Google Systems 1.3%
Bitrix 1.1%
Webflow 0.9%
PrestaShop 0.8%
OpenCart 0.8%

Most used WordPress version in 2022

The most used WordPress version in 2022 is version 6.

Version 6 of WordPress is a significant update that includes a new default theme and a new block-based editor. This new editor is a major change to how WordPress works and allows for more flexibility and creativity when creating new content.

This alone probably drives people to update to the latest major version and, therefore, the latest PHP version.

WordPress Version Usage in October 2022
6 57.7%
5 35.4%
4 6.5%
3 0.4%
2 <0.1%

Most used PHP version in 2022

The most used PHP version in 2022 is PHP 7.

WordPress requires at least PHP 7.4 to be installed. Imagine how PHP 8 usage will skyrocket once WordPress increments its minimum requirements.

It’s also funny to see some ancient websites still up and running thanks to PHP 4. 😅

PHP Version Usage in October 2022
7 71.1%
5 23.0%
8 5.7%
4 0.2%

The most popular PHP framework in 2022 is Laravel.

In my opinion, Laravel is the best PHP framework. I started using it since 2015, and it changed my life. Its pragmatic way of doing things makes it attractive to new developers. And for more experienced people, Laravel offers advanced concepts to help you build complex features at scale.

Laravel VS Symfony on Packagist

The most popular PHP framework on Packagist in 2022 is Laravel.

Package Downloads in October 2022
laravel/framework > 220,500,800
symfony/symfony > 31,000,000

Laravel VS Symfony on GitHub

The most popular PHP framework on GitHub in 2022 is Laravel.

Repository Stars in October 2022
laravel/laravel > 71,300
symfony/symfony > 27,600

I share everything I learn about the art of crafting websites, for free!

Other posts to read

Redirects in PHP are simple. I will guide you step by step and show you how to dodge some traps. Finally, we'll learn the nuance between 301 and 302 redirects.

Take your code to the next level, thanks to exceptions. Handle errors in a more graceful way within try and catch blocks.

Learn why the "Invalid argument supplied for foreach()" warning happens, and let me show you multiple ways to fix it.

When in doubt, clear the cache. In this article, you'll learn about how to clear every cache Laravel uses.

Here are the best GDPR-compliant Google Analytics alternatives to help you avoid the GDPR penalty and keep your users safe.

To keep getting better with PHP, you should subscribe to as many quality blogs as possible. In this article, I share the ones I often read myself.

Laravel 10 will be released on February 7, 2023. Its development is still ongoing. Let's dive into every relevant new feature we know about already.

AI is a trending topic in the programming space. It enables developers to do incredible things, and many startups build products around it.

Migrations are essential in any Laravel app using a database. I will tell you what they are, why you should use them and how you can generate them.

Learn why the "Using $this when not in object context" error happens, and let me show you the only way to fix.