Benjamin Crozat The web developer life

Is PHP dead? Usage statistics for 2022.

Benjamin Crozat Benjamin Crozat2 minutes read

Before you start reading this article, did you know 76 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 or WP Engine) 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.

Laravel VS other frameworks 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
cakephp/cakephp > 10,000,000
codeigniter/framework > 1,330,000
codeigniter4/framework > 950,000

Laravel VS other frameworks 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
bcit-ci/CodeIgniter > 18,200
cakephp/cakephp > 8,600

Other posts to read

Knowing which Laravel version you are running is important before you start writing code on a new project. There are multiple ways to do so.

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

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.

Here's a case study for my blog in the programming niche, where I share everything I did to increase clicks by a huge amount since the beginning.

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

PHP 8.3 will be released in November 2023, and as usual, you need to be up to date with new features and breaking changes for easier transitions.

Let's review some quick wins that Laravel Collections provide to instantly make your codebase better.

Are you looking for the best web hosting for Laravel projects and all budgets? I've got you covered. Here are the best I found.

Learning a framework can be overwhelming. Time and practice will make you a master. Here are some best practices to help you toward your goal.

Hiring a good developer can be challenging. But if you follow these tips and you will be able to hire the right fit for your projects.