search
HomeBackend DevelopmentPHP ProblemIs PHP a dying language?

It seems like this question gets asked every year because for some reason people's perception of PHP is that it's a language used by amateurs, or it's a dying language - one that's dying programming language.

Before we look at “Is PHP getting less and less used?”, let’s start with some key points to consider when choosing a programming language to learn/invest in.

PHP powers about 80% of the web

The first point is how popular PHP is as a programming language. A debate was raised recently on a blog about PHP, the issue being that it is an "enterprise" language. The argument against PHP is that it has not been widely adopted in enterprise application development or applications traditionally developed in Java or .Net.

The key here is to understand that each tool has its advantages and disadvantages, and sometimes it is smarter to use a compiled language like Java instead of PHP. As always, you want to choose the right tool for the job, and PHP excels as a programming language in web applications. That’s why today it powers nearly 80% of the websites on the internet! I would like to repeat this number, almost 80% of the websites on the internet!

In the blog, after the initial argument that PHP is not an enterprise language, I have a question to ask - "Can you name an enterprise that does not use PHP?" Despite the misconception that PHP is not an enterprise language The language of enterprise, but almost every enterprise uses PHP in some way (many for their websites, blogs, or internal tools). While PHP may not power the applications they offer as a service (although for many companies it does), it provides equally important support for the products that help drive a company's success.

This isn't just a personal blog running on a WordPress installation, or a small website running on Drupal (both of which are high-traffic, well-known web properties, by the way), but PHP actually Make web development easier and faster. Because it's not a compiled language and is designed to scale, companies are able to launch faster, add new features, and grow to massive scale.

Some websites developed in PHP include Baidu, Facebook, Sina, but it’s not just old platforms starting to use PHP and expanding with the development of PHP - Etsy, Slack, Box and Canva are also starting to use PHP! Read why Slack chose PHP

In fact, according to BuiltWith, PHP powers 53.22% of the top 10k websites!

Programming languages ​​don’t just disappear

Understanding how popular PHP is today and how often it is used is crucial to understanding PHP’s longevity. Despite radical ideas, programming languages ​​(and programming jobs) won't disappear overnight. Today, you can still find work writing code used in mainframes—for example, Fortran or Cobol.

As long as a company has an application that uses PHP, they will need someone who knows PHP to maintain the application. With PHP being actively developed and maintained (PHP 8 just released), and with PHP powerhouses like WordPress, Drupal, SugarCRM, and others powering websites and applications around the world, it's a safe bet that PHP isn't coming anytime soon Anywhere.

But, with the basics out of the way, let's see how PHP has evolved over the years.

PHP Usage Over the Years

While there is no exact metric to determine how programming languages ​​are ranked, we can get an idea of ​​how a programming language is ranked by looking at a few different rankings. How the language has evolved over the years and where it ranks today.

GitHub's Most Popular Programming Languages

Every year GitHub releases a report on the most popular languages ​​used to create repositories on GitHub.com. While this is not an accurate way to quantify programming languages, it does help us understand which languages ​​developers are using and promoting for their applications. It also helps us understand how active the community itself is.

In 2014, PHP was ranked as the third most popular programming language, behind JavaScript and Java. With the advent of Typescript, C# mobile open source, and the increased use of Python for AI - PHP has indeed declined - and was the 6th most popular programming language on GitHub in 2020.

PHP on GitHub over the years

PHP’s ranking on the Tiobe Index

Another index of software popularity is the Tiobe Index, which is based on The number of programming languages ​​search engines rate them. Companies rely heavily on the index when making programming and investment decisions, especially when it comes to developer marketing.

Like GitHub, PHP's Tiobe Index has also declined. Ranked 8th among all languages ​​last year, PHP dropped to 9th, surpassed by C (C, C#, C), Java, Visual Basic, Python, JavaScript, and Assembly. However, to compare rankings, PHP ranks 9th out of 274 languages ​​tracked by Tiobe and outperforms SQL, Ruby, Groovy, Go, and Swift.

PHP Ranking on BuiltWith

The last model we want to look at is BuiltWith. BuiltWith scans website titles to determine what the site is powered by and, like GitHub and Tiobe, provides rankings of programming language popularity and trends.

Builtwith provides an interesting look at the explosion of websites built with PHP (almost tripling from 2013 to 2016) before declining and normalizing in 2017. The number of websites using PHP has remained almost unchanged from 2017 to present.

BuiltWith PHP Usage

This shows (as we have seen with GitHub and Tiobe) that other languages ​​have become more popular, such as JavaScript and Node.js. This doesn't mean that PHP is no longer used or relied upon, either, but there is more competition and there are other viable options, while PHP is sometimes left alone in being the goto language for web development.

In fact, when we looked at where PHP ranked among all technologies at BuiltWith, PHP received the following BuiltWith awards:

• Most popular framework category on the entire Internet.

• Most popular among top 10k websites in Frames category.

• Most popular among top 100k websites in Frames category.

• Most popular among top 1 million sites in Frames category.

Conclusion

PHP’s popularity has declined from the heights of 10 years ago, but it remains the most popular programming language powering the web. It's important to remember that every tool has pros and cons, and PHP gets some of the bad rap it gets compared to languages ​​that are designed to accomplish tasks or build programs that PHP was never designed for.

It's also important to remember that many of the early criticisms of PHP came from the fact that it was a procedural programming language and did not include object-oriented programming features. These features were added in PHP 4, and with PHP 7 and 8, OOP has become a staple of the PHP language.

PHP is a viable, powerful language used by almost every business and by many large and small businesses. In fact, it powers over 50% of the top 10,000 websites on the web! With this amount of usage, it's safe to assume that PHP will remain a prominent language for years to come.

The above is the detailed content of Is PHP a dying language?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
ACID vs BASE Database: Differences and when to use each.ACID vs BASE Database: Differences and when to use each.Mar 26, 2025 pm 04:19 PM

The article compares ACID and BASE database models, detailing their characteristics and appropriate use cases. ACID prioritizes data integrity and consistency, suitable for financial and e-commerce applications, while BASE focuses on availability and

PHP Secure File Uploads: Preventing file-related vulnerabilities.PHP Secure File Uploads: Preventing file-related vulnerabilities.Mar 26, 2025 pm 04:18 PM

The article discusses securing PHP file uploads to prevent vulnerabilities like code injection. It focuses on file type validation, secure storage, and error handling to enhance application security.

PHP Input Validation: Best practices.PHP Input Validation: Best practices.Mar 26, 2025 pm 04:17 PM

Article discusses best practices for PHP input validation to enhance security, focusing on techniques like using built-in functions, whitelist approach, and server-side validation.

PHP API Rate Limiting: Implementation strategies.PHP API Rate Limiting: Implementation strategies.Mar 26, 2025 pm 04:16 PM

The article discusses strategies for implementing API rate limiting in PHP, including algorithms like Token Bucket and Leaky Bucket, and using libraries like symfony/rate-limiter. It also covers monitoring, dynamically adjusting rate limits, and hand

PHP Password Hashing: password_hash and password_verify.PHP Password Hashing: password_hash and password_verify.Mar 26, 2025 pm 04:15 PM

The article discusses the benefits of using password_hash and password_verify in PHP for securing passwords. The main argument is that these functions enhance password protection through automatic salt generation, strong hashing algorithms, and secur

OWASP Top 10 PHP: Describe and mitigate common vulnerabilities.OWASP Top 10 PHP: Describe and mitigate common vulnerabilities.Mar 26, 2025 pm 04:13 PM

The article discusses OWASP Top 10 vulnerabilities in PHP and mitigation strategies. Key issues include injection, broken authentication, and XSS, with recommended tools for monitoring and securing PHP applications.

PHP XSS Prevention: How to protect against XSS.PHP XSS Prevention: How to protect against XSS.Mar 26, 2025 pm 04:12 PM

The article discusses strategies to prevent XSS attacks in PHP, focusing on input sanitization, output encoding, and using security-enhancing libraries and frameworks.

PHP Interface vs Abstract Class: When to use each.PHP Interface vs Abstract Class: When to use each.Mar 26, 2025 pm 04:11 PM

The article discusses the use of interfaces and abstract classes in PHP, focusing on when to use each. Interfaces define a contract without implementation, suitable for unrelated classes and multiple inheritance. Abstract classes provide common funct

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools