cover image

PHP is a general-purpose scripting language geared toward web development.[6] It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995.[7][8] The PHP reference implementation is now produced by The PHP Group.[9] PHP originally stood for Personal Home Page,[10] but it now stands for the recursive initialism PHP: Hypertext Preprocessor.[11]

Quick facts: Paradigm, Designed by, Developer, First&...
PHP
ParadigmMulti-paradigm: imperative, functional, object-oriented, procedural, reflective
Designed byRasmus Lerdorf
DeveloperThe PHP Development Team, Zend Technologies, PHP Foundation
First appearedJune 8, 1995; 27 years ago (1995-06-08)[1][2]
Stable release
8.1.13 / 2022-11-24[3]
Preview release
8.2.0 beta / 2022-07-21
Typing disciplineDynamic, weak, gradual[4]
Implementation languageC (primarily; some components C++)
OSUnix-like, Windows, macOS, IBM i, OpenVMS
LicensePHP License (most of Zend engine under Zend Engine License)
Filename extensions.php,.phar,.phtml,.pht,.phps
Websitewww.php.net
Major implementations
Zend Engine, HHVM, PeachPie, Quercus, Parrot
Influenced by
Perl, HTML, C, C++, Java,[citation needed] Tcl,[2] JavaScript, Hack[5]
Influenced
Hack, JSP, ASP
Close

PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon or as 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  would form the whole or part of an HTTP response. Various web template systems, web content management systems, and web frameworks exist which can be employed to orchestrate or facilitate the generation of that response. Additionally, PHP can be used for many programming tasks outside the web context, such as standalone graphical applications[12] and robotic drone control.[13] 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.[14]

The PHP language evolved without a written formal specification or standard until 2014, with the original implementation acting as the de facto standard which other implementations aimed to follow. Since 2014, work has gone on to create a formal PHP specification.[15]

W3Techs reports that, as of October 2022, "PHP is used by 74.4% of all the websites whose server-side programming language we know."[16] PHP version 7.4 is the most used version. Support for version 7.3 was dropped on 6 December 2021.