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[1][2] |
Stable release | 8.4.1
/ 21 November 2024[3] |
Typing discipline | Dynamic, weak, gradual[4] |
Implementation language | C (primarily; some components C++) |
OS | Unix-like, Windows, macOS, IBM i, OpenVMS, IBM Z |
License | PHP License (most of Zend engine under Zend Engine License) for PHP 4 and later versions (only; dual-licensed GNU General Public License version 2 or any later version and PHP License for PHP versions 3.0 or earlier.[5]) |
Filename extensions | .php ,.phar ,.phtml ,.pht ,.phps |
Website | www |
Major implementations | |
Zend Engine, HHVM, PeachPie, Quercus, Parrot | |
Influenced by | |
Perl, C, C++, Java,[6] Tcl,[2] JavaScript[7] | |
Influenced | |
Hack, JSP, ASP, React JS | |
|
PHP is a general-purpose scripting language geared towards web development.[8] It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995.[9][10] The PHP reference implementation is now produced by the PHP Group.[11] PHP was originally an abbreviation of Personal Home Page,[12][13] but it now stands for the recursive acronym PHP: Hypertext Preprocessor.[14]
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—would 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 many programming tasks outside the web context, such as standalone graphical applications[15] and drone control.[16] 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.[17]
The PHP language has evolved without a written formal specification or standard, with the original implementation acting as the de facto standard that other implementations aimed to follow.
W3Techs reports that as of 27 October 2024[update] (about two years since PHP 7 was discontinued and 11 months after the PHP 8.3 release), PHP 7 is still used by 50.0% of PHP websites, which is outdated and known to be insecure.[18][19] In addition the even more outdated (discontinued for 5+ years) and insecure PHP 5 is used by 13.2% and the no longer supported PHP 8.0 is also very popular. Meaning the vast majority do not use the supported versions.
Lerdorf-1995
was invoked but never defined (see the help page).{{cite web}}
: Missing or empty |url=
(help); Text "https://www.php.net/releases/8.4/index.php" ignored (help)
O'Reilly-2001
was invoked but never defined (see the help page).W3Techs – World Wide Web Technology Surveys
was invoked but never defined (see the help page).