PHP is detected on 70.2% of all websites whose server-side programming language is known, according to W3Techs on 3 September 2026. Only 44.5% of measured sites run PHP 8. This post covers version share, security support dates, migration activity, developer tooling and the WordPress vulnerability count behind those numbers.
PHP Statistics
PHP Version Statistics: How Much Of The Web Runs PHP 8?
W3Techs tracks version share among websites it detects as running PHP. PHP 8 holds 63.4% of them.
PHP 7 remains on 28.7% of PHP websites, and PHP 5 on 7.9%. PHP 4 is still recorded on 0.1%.
| PHP major version | Share of PHP websites | Community support |
|---|---|---|
| PHP 8 | 63.4% | Partly supported (8.2–8.5) |
| PHP 7 | 28.7% | Ended |
| PHP 5 | 7.9% | Ended |
| PHP 4 | 0.1% | Ended |
Source: W3Techs, usage statistics of PHP for websites, 3 September 2026. Shares cover websites detected as using PHP.
Measured against every site with a detectable server-side language, PHP 8 sits at 44.5% and PHP 7 at 20.1%. The same W3Techs survey shows where those sites are hosted, which lines up with wider Linux web server market share readings.
PHP 8 Statistics By Minor Version
PHP 8.3 leads the PHP 8 installed base at 33.2%, ahead of PHP 8.2 at 29.4%. PHP 8.5, released on 20 November 2025, reached 3.1% in roughly nine months.
| PHP 8 subversion | Share of PHP 8 websites |
|---|---|
| 8.3 | 33.2% |
| 8.2 | 29.4% |
| 8.1 | 16.5% |
| 8.4 | 11.4% |
| 8.0 | 6.4% |
| 8.5 | 3.1% |
| 8.6 | less than 0.1% |
Source: W3Techs, usage statistics of PHP version 8 for websites, 2 September 2026.
PHP 7 Statistics By Minor Version
Within PHP 7, one release accounts for nearly everything. PHP 7.4 covers 73.6% of PHP 7 websites, followed by 7.3 at 10.5% and 7.2 at 8.4%. PHP 7.0 sits at 3.9% and 7.1 at 3.6%.
Source: W3Techs, usage statistics of PHP version 7 for websites, 1 September 2026.
Which PHP Versions Still Get Security Patches?
The PHP Group supports each branch actively for two years, then for two more years of critical security fixes only. Four branches were still receiving fixes on 3 September 2026.
| Branch | Initial release | Active support until | Security support until |
|---|---|---|---|
| 8.2 | 8 Dec 2022 | 31 Dec 2024 | 31 Dec 2026 |
| 8.3 | 23 Nov 2023 | 31 Dec 2025 | 31 Dec 2027 |
| 8.4 | 21 Nov 2024 | 31 Dec 2026 | 31 Dec 2028 |
| 8.5 | 20 Nov 2025 | 31 Dec 2027 | 31 Dec 2029 |
Source: php.net, Supported Versions, accessed 3 September 2026.
PHP 8.1 reached end of life on 31 December 2025 and PHP 8.0 on 26 November 2023. PHP 7.4, the branch behind most PHP 7 sites, ended on 28 November 2022. PHP 5.6 ended on 31 December 2018 and PHP 4.4 on 7 August 2008.
Source: php.net, Unsupported Branches, accessed 3 September 2026.
PHP Migration Statistics From The 2026 Zend Survey
Zend by Perforce surveys self-identified PHP users each year. The 2026 edition draws on 317 PHP respondents out of 712 responses to the 2026 State of Open Source Survey.
Respondents could select several versions, so the production figures below overlap and cannot be added together.
PHP 8.3 was reported in 57% of applications, PHP 8.4 in 53%, PHP 8.2 in 41% and PHP 7.4 in 32%. Zend puts roughly 40% of teams on an end-of-life version and 60% on a community-supported one.
| 2026 PHP Landscape Report finding | Share of respondents |
|---|---|
| Completed a migration in the past 12 months | 68% |
| Did not complete a migration | 32% |
| Migration planned within the next 12 months | 67% |
| Migration planned, but not in the next 12 months | 9% |
| No migration plans at this time | 21% |
| Planning to retire PHP applications | 3% |
Source: Zend by Perforce, 2026 PHP Landscape Report, survey year 2026.
The 68% completion rate is down from 76% in 2025. Perforce reported separately that 76% of surveyed PHP users have an upgrade or migration planned.
Where Teams Moved And What Slowed Them Down
Among those who migrated, PHP 7.4 was the most common version left behind at 39%, then PHP 8.1 at 30% and PHP 8.0 at 29%. PHP 8.4 was the top destination at 57%.
Testing was named the most time-consuming part of a migration by 42% of respondents, ahead of refactoring at 36%, planning at 9% and infrastructure provisioning at 6%. Multiple answers were allowed.
Only 1 in 4 teams running end-of-life PHP used third-party long-term support. Zend found those buyers were 10% more likely to have finished a migration in the past year.
Source: Zend by Perforce, 2026 PHP Landscape Report, survey year 2026.
PHP Developer Statistics: Frameworks, Testing And Tooling
JetBrains collected 1,720 responses from developers naming PHP as their main language in its Developer Ecosystem Survey 2025. JetBrains notes the sample may skew toward users of its own products.
Laravel leads framework use at 64%. WordPress follows at 25% and Symfony at 23%.
| JetBrains State of PHP 2025 metric | Share of respondents |
|---|---|
| Using PHP 8.x | 89% |
| Using PHP 7.x | 33% |
| Using PHP 5.6 or earlier | 8% |
| PHPUnit | 50% |
| Pest | 17% |
| Write no tests at all | 32% |
| PHPStan | 36% |
| Use no code quality tools regularly | 42% |
| Regularly use AI assistants or AI-powered editors | 80% |
Source: JetBrains, The State of PHP 2025 (Developer Ecosystem Survey 2025), n = 1,720. Several questions allowed multiple answers, so shares overlap.
Set the 32% who write no tests against Zend’s finding that testing is the single largest migration pain point. PhpStorm or IntelliJ IDEA with the PHP plugin reached 68%, up ten percentage points, while Visual Studio Code fell to 23%.
PHP Security Statistics: Where The Vulnerabilities Actually Sit
Patchstack counts new vulnerabilities across the WordPress ecosystem each calendar year. The 2025 total was 11,334, a 42% rise on 2024.
Almost none of that sits in WordPress core. Patchstack recorded six core vulnerabilities in 2025, all low priority, on a platform W3Techs measures across a large share of the web.
| Patchstack metric | 2024 | 2025 |
|---|---|---|
| New vulnerabilities found (count) | 7,966 | 11,334 |
| Found in plugins (share) | 96% | 91% |
| Found in themes (share) | 4% | 9% |
| Found in WordPress core (count) | 7 | 6 |
| Not fixed in time for disclosure (share) | 33% | 46% |
Source: Patchstack, State of WordPress Security in 2025 and State of WordPress Security in 2026, calendar years 2024 and 2025.
Of the 2025 total, 1,966 vulnerabilities (17%) carried a high severity score. Patchstack reports the weighted median time to first exploitation for heavily exploited flaws at five hours, and found that hosting defences blocked 26% of attacks in its pentest. That timescale rewards detection and filtering at the edge, which is where self-hosted WAF options come in.
PHP Ecosystem Statistics: Packagist And Stack Overflow
Packagist, the default Composer repository, published these totals on 3 September 2026.
| Packagist total | Figure |
|---|---|
| Packages registered | 466,248 |
| Versions available | 5,781,603 |
| Packages installed since 13 April 2012 | 197,009,379,044 |
Source: Packagist.org, install statistics, accessed 3 September 2026.
Developer-side usage looks very different from deployment share. In the 2025 Stack Overflow Developer Survey, 19.1% of professional developers reported extensive PHP work in the past year.
PHP scored 64.2% on the survey’s admired measure, the share of people who used it and want to keep using it. Broader language ranking comparisons are collected in this programming language rankings roundup.
Source: Stack Overflow Developer Survey 2025, professional developers, n = 24,759 for the language question.
Laravel was used by 9.3% of professional developers in the same survey and WordPress by 12.4%, both far below the JetBrains figures because the two surveys sample different populations. Composer appeared at 11.4%.
Deployment context matters for reading any of this. PHP workloads land overwhelmingly on Linux hosts, and the server operating system share plus Linux distribution popularity data show which platforms carry them.
What The 2026 PHP Statistics Show
PHP’s detected share of the web sits at 70.2%, and 3% of surveyed teams plan to retire their PHP applications.
Migration completion fell from 76% to 68% year over year, while 42% of migrating teams named testing as the biggest time sink and 32% of surveyed developers write no tests at all.
For platform context around these figures, see the wider Linux adoption figures and current distro adoption trends.
FAQs
What percentage of websites use PHP in 2026?
PHP is detected on 70.2% of websites with a known server-side programming language, per W3Techs on 3 September 2026. That share covers sites where a server-side language can be identified, not the whole web.
Is PHP 7 still supported?
No. PHP 7.4, the last PHP 7 branch, reached end of life on 28 November 2022 per php.net. W3Techs still records PHP 7 on 28.7% of PHP websites as of 3 September 2026.
Why do Reddit threads quote different PHP market share numbers?
They mix measurements. W3Techs reports 70.2% of websites with a detectable server-side language. Stack Overflow’s 2025 survey reports 18.9% of respondents. Different populations, different questions, both correct.
How many PHP teams completed a migration in the past year?
68% of respondents to Zend’s 2026 PHP Landscape Report completed a migration in the past 12 months, down from 76% in 2025. A further 67% have one planned within the next 12 months.
Is Laravel really the most used PHP framework, as Reddit suggests?
Survey data agrees. JetBrains put Laravel at 64% of 1,720 PHP developers in 2025, ahead of WordPress at 25% and Symfony at 23%. Stack Overflow’s wider sample shows lower shares.
Sources
https://w3techs.com/technologies/details/pl-php
https://www.php.net/supported-versions.php
https://www.zend.com/blog/php-migration-trends
https://patchstack.com/whitepaper/state-of-wordpress-security-in-2026/