cover image


Scripting language created in 1994 / From Wikipedia, the free encyclopedia

Dear Wikiwand AI, let's keep it short, summarize this topic like I'm... Ten years old or a College student

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

Quick facts: Paradigm, Designed by, Developer, First&...
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.2.1 / 2023-01-05[3]
Typing disciplineDynamic, weak, gradual[4]
Implementation languageC (primarily; some components C++)
OSUnix-like, Windows, macOS, IBM i, OpenVMS
Licensedual licensed GNU General Public License version 2 or any later version and PHP License for PHP versions 3.0 or earlier.[5] Only PHP License (most of Zend engine under Zend Engine License) for 3.01x and later versions.
Filename extensions.php,.phar,.phtml,.pht,.phps
Major implementations
Zend Engine, HHVM, PeachPie, Quercus, Parrot
Influenced by
Perl, HTML, C, C++, Java,[citation needed] Tcl,[2] JavaScript, Hack[6]
Hack, JSP, ASP

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[14] and robotic drone control.[15] 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.[16]

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.[17]

W3Techs reports that, as of January 2023, "PHP is used by 77.8% of all the websites whose server-side programming language we know."[18] It also reports that only 8% of PHP users use the currently supported 8.x versions. Most use unsupported PHP 7, more specifically 7.4, and even PHP 5 has 23% of the use, also not supported with security updates, known to have serious security vulnerabilities.