Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cost of Ownership

A language costs you three things: the people who write it, the machines that run it, and the calendar you spend keeping it current. PHP has a figure for each, and each figure has two readings. PHP developers are numerous and, by the surveys’ own medians, paid less than developers of most other languages; the runtime has the fewest moving parts to host, files served by a process pool; and the yearly release cadence imposes a yearly upgrade budget that a large share of the installed base has not been paying. The cheap reading and the dear reading come from the same sources, and you will need both.

People

One professional developer in five wrote PHP in the past year. That places it twelfth among languages in the largest developer survey, within a few points of Go and C.

Languages used by professional developers, past year Horizontal bars, share of professional respondents: JavaScript 68.8 percent, Python 54.8, TypeScript 48.8, C# 29.9, Java 29.6, PHP 19.1, Go 17.4, Rust 14.5, Ruby 6.9 Languages used by professional developers, past year JavaScript 68.8% Python 54.8% TypeScript 48.8% C# 29.9% Java 29.6% PHP 19.1% Go 17.4% Rust 14.5% Ruby 6.9% Stack Overflow Developer Survey 2025, professional developers (n = 24,759), fielded May to June 2025. Self-selected respondents recruited through Stack Overflow. Several answers per respondent.

Another survey agrees on the order of magnitude: 17 percent of respondents used PHP in the JetBrains survey of 2025, and 9 percent named it their primary language. The labour market itself is thinly documented in public. One aggregator of British job advertisements counted 613 permanent positions citing PHP in the six months to September 2026, up from 404 a year earlier, at a median advertised salary of 48,676 pounds, up 14.5 percent. I found no comparable public series for other countries, so I report none.

The salary figure that does exist is the survey median, and it is low.

Median yearly salary reported by developers using each language, US dollars Horizontal bars: Erlang 100,636, Ruby 90,221, Go 76,433, Rust 76,292, Python 67,723, C# 66,066, TypeScript 65,907, JavaScript 63,694, Java 61,714, PHP 49,586 Median yearly salary reported by developers using each language, US dollars Erlang 100,636 Ruby 90,221 Go 76,433 Rust 76,292 Python 67,723 C# 66,066 TypeScript 65,907 JavaScript 63,694 Java 61,714 PHP 49,586 Stack Overflow Developer Survey 2024, "Top paying technologies", programming languages, median in US dollars. The 2025 edition did not publish this table. Self-reported, worldwide, not adjusted for country. PHP was the second-lowest of fifty languages listed.

Developers using PHP reported a median of 49,586 dollars a year in the last edition of the Stack Overflow survey to publish salaries by language, the second lowest of fifty languages, against 63,694 for JavaScript, 67,723 for Python and 90,221 for Ruby. The figure is worldwide and self-reported, and PHP’s respondents live disproportionately in countries with lower wages, so it says less about your city than it appears to. Read it as a cost and PHP staffing is inexpensive in the aggregate. Read it as a signal and the market values the median PHP position below the median position in other languages. If you are building a team, you need both readings.

Developers who used a language and want to keep using it Horizontal bars, admired share: Rust 72.4 percent, TypeScript 58.0, Go 56.5, Python 56.4, C# 55.8, JavaScript 46.8, Ruby 44.3, Java 41.8, PHP 38.9 Developers who used a language and want to keep using it Rust 72.4% TypeScript 58% Go 56.5% Python 56.4% C# 55.8% JavaScript 46.8% Ruby 44.3% Java 41.8% PHP 38.9% Stack Overflow Developer Survey 2025, "admired" measure (n = 31,771). Share of respondents who used the language in the past year and want to continue.

Sentiment is harder to price than salary. Among developers who used a language in the past year, 38.9 percent of PHP’s users want to keep using it, the lowest of the mainstream languages and well below Rust at 72.4, TypeScript at 58.0 or Python at 56.4. The same year, 58 percent of developers whose main language is PHP said they did not plan to migrate to another. The two figures describe different populations, the occasional user and the specialist, and together they describe a language people are more often assigned to than drawn to. For hiring, that means a large pool and a retention question, and the weighting is yours.

Machines

A PHP application in production is files on a disk, served by a pool of processes. There is no long-running application process to monitor, restart or drain, no warm-up, no heap to size: that is the shared-nothing model of The Runtime, and it gives PHP the fewest moving parts to host. It is why every shared hosting provider in the world offers it, and why the platforms of Footprint can be installed by people who are not engineers. For most applications, a container image of the official php:8.5-fpm build, a web server in front and a load balancer are the whole production architecture, and adding capacity is adding a copy.

What you pay for that simplicity is efficiency per machine. In the benchmark of Throughput and Latency, a framework under PHP-FPM serves a few tens of thousands of requests per second on a large server; a worker runtime multiplies that by three to four, and brings with it the operational discipline of a long-running process. The engine’s own progress shows in the same ledger. Badoo reported in 2017 that moving its hundreds of application servers from PHP 5 to PHP 7 saved it about one million dollars in hardware, a self-reported figure from the company’s engineering blog. I have no independent measurement of hosting cost per request across languages, and I make no claim about one.

An open ledger on a desk with three columns headed by small icons: a group of people, a rack of servers, a calendar. An elephant with reading glasses writes in the second column. Beside the ledger, a small stack of coins and a wall calendar with one month circled

Calendar

Wikimedia’s upgrade history is public: production moved from PHP 7.4 to 8.1 in March 2025, to 8.3 in November 2025, and was planning 8.5 for late 2026. A minor version ships every year in late November or early December and is supported for four years, so you must plan one upgrade a year to stay in active support, or one every two to three years to stay in security support. The work of an upgrade is bounded: the language deprecates in a minor version and removes at the next major, the analysers report the deprecations, and Rector applies the mechanical rewrites. On a well-tested codebase a version upgrade is measured in days, on an untested one in weeks.

The installed base shows what happens when that budget is not paid.

PHP versions in use, three populations Three stacked bars. Composer installs on Packagist, August 2026: PHP 8 94.2 percent, PHP 7 5.6, PHP 5 0.2. WordPress sites reporting to wordpress.org, September 2026: PHP 8 77.2, PHP 7 20.8, PHP 5 2.1. Websites on W3Techs, September 2026: PHP 8 64.1, PHP 7 28.1, PHP 5 7.9. PHP versions in use, three populations Composer installs (Packagist) 94.2% WordPress sites (wordpress.org) 77.2% 20.8% Websites (W3Techs) 64.1% 28.1% PHP 8 PHP 7 PHP 5 Packagist php-statistics, August 2026; api.wordpress.org/stats/php, 17 September 2026; W3Techs, 17 September 2026. PHP 4 (0.1% of websites) folded into PHP 5.

Among packages installed through Composer, 94 percent of installs in August 2026 ran on PHP 8 and 0.2 percent on PHP 5. WordPress sites reporting to wordpress.org stood at 77 percent PHP 8, 21 percent PHP 7 and 2 percent PHP 5. The web as W3Techs detects it ran 64 percent PHP 8, 28 percent PHP 7 and 8 percent PHP 5, and those last two are versions that have received no security fix since November 2022 and December 2018 respectively. Those are three populations: the developers who build, the sites that update themselves, and the web as it is. The gap between the first and the third is the ecosystem’s technical debt, and if you inherit a PHP codebase, ask which population it belongs to before you quote a price.

The limit: PHP’s staffing is cheap by the medians and its hosting has the fewest moving parts, and each of those facts comes with its shadow, a retention question and an installed base of which more than a third runs unsupported versions. Budget the yearly upgrade and hire for the specialist rather than the occasional user, and you get the cheap side of each; skip either, and you get the other.

What to verify yourself

Search the job boards of your own city for the language, then for the frameworks you would use, and compare the count and the advertised range with the languages you are considering, which beats any worldwide median. Ask your hosting provider or your platform team what PHP version they run today and how they would upgrade it. Then take one open-source PHP project of your codebase’s size that is two versions behind, and run Rector’s upgrade set on it: the diff it produces is the cost of a version, in front of you.

The cases where this arithmetic stops applying, because PHP is the wrong tool rather than a dear one, are collected in Where PHP Is the Wrong Choice.