PHP
| PHP | |
|---|---|
| Paradigm | Multi-paradigm: imperative, functional, object-oriented, procedural, reflective |
| Designed by | Rasmus Lerdorf |
| Developer | The PHP Development Team, Zend Technologies, PHP Foundation |
| First appeared | 8 June 1995 |
| Stable release | 8.5.4
/ 12 March 2026 |
| Typing discipline | Dynamic, weak, gradual |
| Implementation language | C (primarily; some components in C++) |
| OS | Unix-like, Windows, macOS, IBM i, OpenVMS, IBM Z |
| License | PHP License |
| Filename extensions | .php,.phar,.phtml,.pht,.phps |
| Website | php.net |
| Major implementations | |
| Zend Engine, HHVM, PeachPie, Quercus, Parrot | |
| Influenced by | |
| Perl, C, C++, Java, Tcl, JavaScript | |
| Influenced | |
| Hack, JSP, ASP, React JS | |
| |
PHP is a general-purpose scripting language geared towards web development. It was created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995. The PHP reference implementation is now produced by the PHP Group. PHP was originally an abbreviation of Personal Home Page, but it now stands for the recursive backronym PHP: Hypertext Preprocessor.
PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon or a Common Gateway Interface (CGI) executable. On a web server, the result of the interpreted and executed PHP code—which may be any type of data, such as generated HTML or binary image data—can form the whole or part of an HTTP response. Various web template systems, web content management systems, and web frameworks exist that can be employed to orchestrate or facilitate the generation of that response. Additionally, PHP can be used for programming tasks outside the web context, though non-web uses are rare. PHP code can also be directly executed from the command line.
The standard PHP interpreter, powered by the Zend Engine, is free software released under the PHP License. PHP has been widely ported and can be deployed on most web servers on a variety of operating systems and platforms.