Discuss your project

Glossary

PHP

PHP (recursive acronym for "PHP: Hypertext Preprocessor") is a widely used open-source scripting language that is especially suited for web development. PHP code runs on the server and generates HTML, JSON or other responses for browsers and applications there.

October 25, 2026PHPWeb DevelopmentProgramming LanguageWeb Server

PHP is one of the most widely used languages on the web. According to W3Techs, 69.2% of all websites whose server-side programming language is known use PHP (as of October 25, 2026). Many content management systems, online shops, customer portals and frameworks such as Laravel are based on it. PHP is therefore often in use at companies, frequently without being noticed in everyday work: on the company website, in the shop or in a line-of-business application at the hosting provider.

How PHP works

When a browser requests a page, a web server such as nginx or Apache receives the HTTP request and passes it to the PHP interpreter, often via PHP-FPM. PHP executes the script, queries a database if necessary and returns the result, for example an HTML page or a JSON response for an API. Visitors do not see the source code itself.

So that PHP does not have to recompile scripts on every request, OPcache stores the precompiled bytecode in memory. Third-party libraries are usually included with Composer. PHP also runs on the command line, for example for scheduled tasks and scripts.

Supported versions

The PHP project actively supports each version for two years and then for two more years with security fixes only. According to php.net, as of October 25, 2026:

PHP 8.1 reached the end of support on December 31, 2025. The entry PHP end of life explains what this means and how to upgrade successfully. According to W3Techs, 65.5% of PHP websites run version 8 and 26.8% still run version 7, whose support ended long ago.

Typical use cases

Security and operations

How it differs

JavaScript runs mainly in the browser, PHP on the server. The two often work together in web applications. PHP is the language, frameworks such as Laravel build on it to provide structure and ready-made building blocks, and PHP-FPM is the runtime environment in which PHP is executed on the web server.

Frequently asked questions

Is PHP still up to date?

PHP is actively developed. Version 8.5 was released on November 20, 2025, and brought, among other things, a built-in extension for parsing URLs according to RFC 3986 and WHATWG, as well as the pipe operator |>. Together with its wide adoption, this keeps PHP a solid choice for web applications.

Which PHP version should I use?

Ideally a version with active support, currently PHP 8.4 or 8.5, provided the application, plugins and libraries support it. At a minimum, a version that still receives security updates. If a website runs on an older version, the upgrade should be planned before problems occur.

How do I find out which PHP version my website uses?

In the administration area of the hosting plan, on the server with php -v or via a protected diagnostics page. Output from phpinfo() never belongs on the public web. If the X-Powered-By header shows the version, it is also visible from the outside.

Sources

Open the security header check

EXPLORE THE GLOSSARY

Related Terms

More in Software Development

All Glossary Terms

YOUR NEXT STEP

What should
work better
next?

Tell us briefly what you have in mind. We will assess it and suggest a sensible next step.