PHP explained

Paradigm:Multi-paradigm

imperative, functional, object-oriented, procedural, reflective

Released:[1]
Designer:Rasmus Lerdorf
Developer:, Zend Technologies,
Latest Release Version:8.3.10
Latest Release Date:[2]
Typing:Dynamic, weak, gradual[3]
Implementations:Zend Engine, HHVM, PeachPie, Quercus, Parrot
Influenced By:Perl, C, C++, Java,[4] Tcl, JavaScript[5]
Influenced:Hack, JSP, ASP, React JS
Programming Language:C (primarily; some components C++)
Operating System:Unix-like, Windows, macOS, IBM i, OpenVMS, IBM Z
License:dual licensed GNU General Public License version 2 or any later version and PHP License for PHP versions 3.0 or earlier.[6] Only PHP License (most of Zend engine under Zend Engine License) for 3.01x and later versions.
Wikibooks:PHP Programming

PHP is a general-purpose scripting language geared towards 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]

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 codewhich may be any type of data, such as generated HTML or binary image datawould 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[14] and drone control. 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.

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 (the six months after the PHP 8.3 release), PHP is used by 76.2% of all websites whose programming language could be determined, and 55.1% thereof use PHP 7 which is outdated and known to be insecure.[15]

History

Early history

PHP development began in 1993 when Rasmus Lerdorf wrote several Common Gateway Interface (CGI) programs in C,[16] [17] which he used to maintain his personal homepage. He extended them to work with web forms and to communicate with databases, and called this implementation "Personal Home Page/Forms Interpreter" or PHP/FI.

An example of the early PHP syntax:[18]

Hey, you are using Netscape!

Sorry, that record does not exist

Welcome !

You have credits left in your account.

PHP/FI could be used to build simple, dynamic web applications. To accelerate bug reporting and improve the code, Lerdorf initially announced the release of PHP/FI as "Personal Home Page Tools (PHP Tools) version 1.0" on the Usenet discussion group comp.infosystems.www.authoring.cgi on 8 June 1995.[19] [20] This release included basic functionality such as Perl-like variables, form handling, and the ability to embed HTML. By this point, the syntax had changed to resemble that of Perl, but was simpler, more limited, and less consistent.

Early PHP was never intended to be a new programming language; rather, it grew organically, with Lerdorf noting in retrospect: "I don't know how to stop it [...] there was never any intent to write a programming language [...] I have absolutely no idea how to write a programming language [...] I just kept adding the next logical step on the way."[21] A development team began to form and, after months of work and beta testing, officially released PHP/FI 2 in November 1997.[22]

The fact that PHP was not originally designed, but instead was developed organically has led to inconsistent naming of functions and inconsistent ordering of their parameters.[23] In some cases, the function names were chosen to match the lower-level libraries which PHP was "wrapping",[24] while in some very early versions of PHP the length of the function names was used internally as a hash function, so names were chosen to improve the distribution of hash values.[25]

PHP 3 and 4

Zeev Suraski and Andi Gutmans rewrote the parser in 1997 and formed the base of PHP 3, changing the language's name to the recursive acronym PHP: Hypertext Preprocessor.[26] Afterwards, public testing of PHP 3 began, and the official launch came in June 1998. Suraski and Gutmans then started a new rewrite of PHP's core, producing the Zend Engine in 1999.[27] They also founded Zend Technologies in Ramat Gan, Israel.

On 22 May 2000, PHP 4, powered by the Zend Engine 1.0, was released. By August 2008, this branch had reached version 4.4.9. PHP 4 is now no longer under development and nor are any security updates planned to be released.[28] [29]

PHP 5

On 1 July 2004, PHP 5 was released, powered by the new Zend Engine II. PHP 5 included new features such as improved support for object-oriented programming, the PHP Data Objects (PDO) extension (which defines a lightweight and consistent interface for accessing databases), and numerous performance enhancements.[30] In 2008, PHP 5 became the only stable version under development. Late static binding had been missing from previous versions of PHP, and was added in version 5.3.[31] [32]

Many high-profile open-source projects ceased to support PHP 4 in new code from February 5, 2008, because of the GoPHP5 initiative,[33] provided by a consortium of PHP developers promoting the transition from PHP 4 to PHP 5.[34] [35]

Over time, PHP interpreters became available on most existing 32-bit and 64-bit operating systems, either by building them from the PHP source code or by using pre-built binaries.[36] For PHP versions 5.3 and 5.4, the only available Microsoft Windows binary distributions were 32-bit IA-32 builds,[37] [38] requiring Windows 32-bit compatibility mode while using Internet Information Services (IIS) on a 64-bit Windows platform. PHP version 5.5 made the 64-bit x86-64 builds available for Microsoft Windows.[39]

Official security support for PHP 5.6 ended on 31 December 2018.[40]

PHP 6 and Unicode

PHP received mixed reviews due to lacking native Unicode support at the core language level.[41] [42] In 2005, a project headed by Andrei Zmievski was initiated to bring native Unicode support throughout PHP, by embedding the International Components for Unicode (ICU) library, and representing text strings as UTF-16 internally.[43] Since this would cause major changes both to the internals of the language and to user code, it was planned to release this as version 6.0 of the language, along with other major features then in development.[44]

However, a shortage of developers who understood the necessary changes, and performance problems arising from conversion to and from UTF-16, which is rarely used in a web context, led to delays in the project.[45] As a result, a PHP 5.3 release was created in 2009, with many non-Unicode features back-ported from PHP 6, notably namespaces. In March 2010, the project in its current form was officially abandoned, and a PHP 5.4 release was prepared to contain most remaining non-Unicode features from PHP 6, such as traits and closure re-binding.[46] Initial hopes were that a new plan would be formed for Unicode integration, but by 2014 none had been adopted.

PHP 7

During 2014 and 2015, a new major PHP version was developed, PHP 7. The numbering of this version involved some debate among internal developers.[47] While the PHP 6 Unicode experiments had never been released, several articles and book titles referenced the PHP 6 names, which might have caused confusion if a new release were to reuse the name.[48] After a vote, the name PHP 7 was chosen.[49]

The foundation of PHP 7 is a PHP branch that was originally dubbed PHP next generation (phpng). It was authored by Dmitry Stogov, Xinchen Hui and Nikita Popov,[50] and aimed to optimize PHP performance by refactoring the Zend Engine while retaining near-complete language compatibility.[51] By 14 July 2014, WordPress-based benchmarks, which served as the main benchmark suite for the phpng project, showed an almost 100% increase in performance. Changes from phpng make it easier to improve performance in future versions, as more compact data structures and other changes are seen as better suited for a successful migration to a just-in-time (JIT) compiler.[52] Because of the significant changes, the reworked Zend Engine was called Zend Engine 3, succeeding Zend Engine 2 used in PHP 5.[53]

Because of the major internal changes in phpng, it must receive a new major version number of PHP, rather than a minor PHP 5 release, according to PHP's release process. Major versions of PHP are allowed to break backward-compatibility of code and therefore PHP 7 presented an opportunity for other improvements beyond phpng that require backward-compatibility breaks. In particular, it involved the following changes:

PHP 7 also included new language features. Most notably, it introduced return type declarations for functions[65] which complement the existing parameter type declarations, and support for the scalar types (integer, float, string, and boolean) in parameter and return type declarations.[66]

PHP 8

PHP 8 was released on 26 November 2020, and is currently the second-most used PHP major version. PHP 8 is a major version and has breaking changes from previous versions.[67] [68] New features and notable changes include:

Just-in-time compilation

Just-in-time compilation is supported in PHP 8.

PHP 8's JIT compiler can provide substantial performance improvements for some use cases,[69] [70] while PHP developer Nikita Popov stated that the performance improvements for most websites will be less substantial than the upgrade from PHP 5 to PHP 7. Substantial improvements are expected more for mathematical-type operations than for common web-development use cases.[71] Additionally, the JIT compiler provides the future potential to move some code from C to PHP, due to the performance improvements for some use cases.[72]

Addition of the match expression

PHP 8 introduced the expression.[73] The match expression is conceptually similar to a statement and is more compact for some use cases.[74] Because is an expression, its result can be assigned to a variable or returned from a function.[75]

Type changes and additions

PHP 8 introduced union types, a new return type, and a new type.

"Attributes", often referred to as "annotations" in other programming languages, were added in PHP 8, which allow metadata to be added to classes.

was changed from being a statement to being an expression. This allows exceptions to be thrown in places that were not previously possible.

Syntax changes and additions

PHP 8 includes changes to allow alternate, more concise, or more consistent syntaxes in a number of scenarios. For example, the nullsafe operator is similar to the null coalescing operator, but used when calling methods. The following code snippet will not throw an error if returns null:

$human_readable_date = $user->getBirthday?->diffForHumans;

Constructor property promotion has been added as "syntactic sugar," allowing class properties to be set automatically when parameters are passed into a class constructor. This reduces the amount of boilerplate code that must be written.[76]

Other minor changes include support for use of on objects, which serves as an alternative for the use of ; non-capturing catches in try-catch blocks; variable syntax tweaks to resolve inconsistencies; support for named arguments; and support for trailing commas in parameter lists, which adds consistency with support for trailing commas in other contexts, such as in arrays.

Standard library changes and additions

Additional changes

PHP 8.1

PHP 8.1 was released on November 25, 2021.[79] It added support for enumerations (also called "enums"), declaring properties as readonly (which prevents modification of the property after initialization), and array unpacking with string keys. The new never type can be used to indicate that a function does not return.[80]

PHP 8.2

PHP 8.2 was released on December 8, 2022.[81] New in this release are readonly classes (whose instance properties are implicitly readonly), disjunctive normal form (DNF) types, and the random extension, which provides a pseudorandom number generator with an object-oriented API,[82] Sensitive Parameter value redaction, and a ton of other features.

Release history

VersionRelease dateSupported until[83] Notes
8 June 1995Officially called "Personal Home Page Tools (PHP Tools)". This is the first use of the name "PHP".
1 November 1997Officially called "PHP/FI 2.0". This is the first release that could actually be characterised as PHP, being a standalone language with many features that have endured to the present day.
6 June 199820 October 2000Development moves from one person to multiple developers. Zeev Suraski and Andi Gutmans rewritten the base for this version.
22 May 2000[84] 23 June 2001Added more advanced two-stage parse/execute tag-parsing system called the Zend engine.[85]
10 December 2001[86] 12 March 2002Introduced "superglobals" (etc.)
22 April 2002[87] 6 September 2002Disabled register_globals by default. Data received over the network is not inserted directly into the global namespace anymore, closing possible security holes in applications.
27 December 2002[88] 31 March 2005Introduced the command-line interface (CLI), to supplement the CGI.[89]
11 July 2005[90] 7 August 2008Fixed a memory corruption bug, which required breaking binary compatibility with extensions compiled against PHP version 4.3.x.[91]
13 July 2004[92] 5 September 2005Zend Engine II with a new object model.[93]
24 November 2005[94] 24 August 2006Performance improvements with the introduction of compiler variables in re-engineered PHP Engine. Added PHP Data Objects (PDO) as a consistent interface for accessing databases.[95]
2 November 2006[96] 6 January 2011Enabled the filter extension by default. Native JSON support.
30 June 2009[97] 14 August 2014Namespace support; late static bindings, jump label (limited goto), anonymous functions, closures, PHP archives (phar), garbage collection for circular references, improved Windows support, sqlite3, mysqlnd as a replacement for libmysql as the underlying library for the extensions that work with MySQL, fileinfo as a replacement for mime_magic for better MIME support, the Internationalization extension, and deprecation of ereg extension.
1 March 2012[98] 3 September 2015Trait support, short array syntax support. Removed items: register_globals, safe_mode, allow_call_time_pass_reference,, and . Built-in web server.[99] Several improvements to existing features, performance and reduced memory requirements.
20 June 2013[100] 10 July 2016[101] Support for generators, finally blocks for exceptions handling, OpCache (based on Zend Optimizer+) bundled in official distribution.[102]
28 August 2014[103] 31 December 2018Constant scalar expressions, variadic functions, argument unpacking, new exponentiation operator, extensions of the use statement for functions and constants, new phpdbg debugger as a SAPI module, and other smaller improvements.[104]
6.xAbandoned version of PHP that planned to include native Unicode support.[105] [106]
3 December 2015[107] 10 January 2019Zend Engine 3 (performance improvements and 64-bit integer support on Windows[108]), uniform variable syntax, AST-based compilation process,[109] added,[110] bitwise shift consistency across platforms,[111] (null coalesce) operator,[112] Unicode code point escape syntax,[113] return type declarations, scalar type (integer, float, string and boolean) declarations, <=> "spaceship" three-way comparison operator,[114] generator delegation,[115] anonymous classes,[116] simpler and more consistently available CSPRNG API,[117] replacement of many remaining internal PHP "errors" with the more modern exceptions,[118] and shorthand syntax for importing multiple items from a namespace.[119]
1 December 20161 December 2019 type,[120] nullable types,[121] return type,[122] class constant visibility modifiers,[123] short list syntax,[124] multi-catch[125]
30 November 201730 November 2020Object parameter and return type declaration,[126] libsodium extension,[127] abstract method overriding,[128] parameter type widening[129]
6 December 2018[130] 6 December 2021Flexible Heredoc and Nowdoc syntax,[131] support for reference assignment and array deconstruction with,[132] PCRE2 support,[133] function[134]
28 November 2019[135] 28 November 2022Typed properties 2.0,[136] preloading,[137] null-coalescing assignment operator,[138] improve,[139] weak references,[140] foreign function interface (FFI),[141] always available hash extension,[142] password hash registry,[143] multibyte string splitting,[144] reflection for references,[145] unbundle ext/wddx,[146] new custom object serialization mechanism[147]
26 November 2020[148] 26 November 2023Just-In-Time (JIT) compilation,[149] arrays starting with a negative index,[150] stricter/saner language semantics (validation for abstract trait methods),[151] saner string to number comparisons,[152] saner numeric strings,[153] on invalid arithmetic/bitwise operators,[154] reclassification of various engine errors,[155] consistent type errors for internal functions,[156] fatal error for incompatible method signatures[157]), locale-independent float to string conversion,[158] variable syntax tweaks,[159] attributes,[160] [161] [162] [163] named arguments,[164] match expression,[165] constructor property promotion,[166] union types,[167] type,[168] static return type,[169] nullsafe operator,[170] non-capturing catches,[171] expression,[172] JSON extension is always available.[173]
25 November 2021[174] 31 December 2025Explicit octal integer literal notation,[175] enumerations,[176] read-only properties,[177] first-class callable syntax,[178] in initializers,[179] pure intersection types,[180] return type,[181] class constraints,[182] fibers[183]
8 December 2022[184] 31 December 2026Readonly classes,[185],, and as stand-alone types,[186] [187] locale-independent case conversion,[188] disjunctive normal form types,[189] constants in traits[190]
23 November 2023[191] 31 December 2027Typed class constants,[192] dynamic class constant fetch,[193] attribute,[194] deep-cloning of read-only properties,[195] new function,[196] randomizer additions,[197] the command-line linter supports multiple files
21 November 2024[198] 31 December 2028

Beginning on 28 June 2011, the PHP Development Team implemented a timeline for the release of new versions of PHP.[199] Under this system, at least one release should occur every month. Once per year, a minor release should occur which may include new features. Every minor release should at least be supported for two years with security and bug fixes, followed by at least one year of only security fixes, for a total of a three-year release process for every minor release. No new features, unless small and self-contained, are to be introduced into a minor release during the three-year release process.

Mascot

The mascot of the PHP project is the elePHPant, a blue elephant with the PHP logo on its side, designed by Vincent Pontier[200] in 1998.[201] "The (PHP) letters were forming the shape of an elephant if viewed in a sideways angle."[202] The elePHPant is sometimes differently coloured when in plush toy form.[203]

Many variations of this mascot have been made over the years. Only the elePHPants based on the original design by Vincent Pontier are considered official by the community.[204] These are collectable and some of them are extremely rare.[205]

Syntax

See main article: PHP syntax and semantics.

The following "Hello, World!" program is written in PHP code embedded in an HTML document:

PHP "Hello, World!" program

However, as no requirement exists for PHP code to be embedded in HTML, the simplest version of Hello, World! may be written like this, with the closing tag ?> omitted as preferred in files containing pure PHP code.[206]

The PHP interpreter only executes PHP code within its delimiters. Anything outside of its delimiters is not processed by PHP, although the non-PHP text is still subject to control structures described in PHP code. The most common delimiters are to open and ?> to close PHP sections. The shortened form also exists. This short delimiter makes script files less portable since support for them can be disabled in the local PHP configuration and it is therefore discouraged.[207] Conversely, there is no recommendation against the echo short tag .[208] Prior to PHP 5.4.0, this short syntax for echo only works with the short_open_tag configuration setting enabled, while for PHP 5.4.0 and later it is always available.[209] [210] [211] The purpose of all these delimiters is to separate PHP code from non-PHP content, such as JavaScript code or HTML markup.[212] So the shortest "Hello, World!" program written in PHP is:The first form of delimiters, and ?>, in XHTML and other XML documents, creates correctly formed XML processing instructions.[213] This means that the resulting mixture of PHP code and other markups in the server-side file is itself well-formed XML.

Variables are prefixed with a dollar symbol, and a type does not need to be specified in advance. PHP 5 introduced type declarations that allow functions to force their parameters to be objects of a specific class, arrays, interfaces or callback functions. However, before PHP 7, type declarations could not be used with scalar types such as integers or strings.

Below is an example of how PHP variables are declared and initialized.

Unlike function and class names, variable names are case-sensitive. Both double-quoted ("") and heredoc strings provide the ability to interpolate a variable's value into the string.[214] PHP treats newlines as whitespace in the manner of a free-form language, and statements are terminated by a semicolon.[215] PHP has three types of comment syntax: /* */ marks block and inline comments; // or # are used for one-line comments.[216] The echo statement is one of several facilities PHP provides to output text.

In terms of keywords and language syntax, PHP is similar to C-style syntax. if conditions, for and while loops and function returns are similar in syntax to languages such as C, C++, C#, Java and Perl.

Data types

PHP is loosely typed. It stores integers in a platform-dependent range, either as a 32, 64 or 128-bit signed integer equivalent to the C-language long type. Unsigned integers are converted to signed values in certain situations, which is different behaviour to many other programming languages.[217] Integer variables can be assigned using decimal (positive and negative), octal, hexadecimal, and binary notations.

Floating-point numbers are also stored in a platform-specific range. They can be specified using floating-point notation, or two forms of scientific notation.[218] PHP has a native Boolean type that is similar to the native Boolean types in Java and C++. Using the Boolean type conversion rules, non-zero values are interpreted as true and zero as false, as in Perl and C++.

The null data type represents a variable that has no value; NULL is the only allowed value for this data type.

Variables of the "resource" type represent references to resources from external sources. These are typically created by functions from a particular extension, and can only be processed by functions from the same extension; examples include file, image, and database resources.

Arrays can contain elements of any type that PHP can handle, including resources, objects, and even other arrays. Order is preserved in lists of values and in hashes with both keys and values, and the two can be intermingled. PHP also supports strings, which can be used with single quotes, double quotes, nowdoc or heredoc syntax.[219]

The Standard PHP Library (SPL) attempts to solve standard problems and implements efficient data access interfaces and classes.[220]

Functions

PHP defines a large array of functions in the core language and many are also available in various extensions; these functions are well documented online PHP documentation. However, the built-in library has a wide variety of naming conventions and associated inconsistencies, as described under history above.

Custom functions may be defined by the developer:

function myAge(int $birthYear): string

echo 'I am currently ' . myAge(1995) . ' old.';

As of, the output of the above sample program is "I am currently years old."

In lieu of function pointers, functions in PHP can be referenced by a string containing their name. In this manner, normal PHP functions can be used, for example, as callbacks or within function tables. User-defined functions may be created at any time without being prototyped.[221] [222] Functions may be defined inside code blocks, permitting a run-time decision as to whether or not a function should be defined. There is a function_exists function that determines whether a function with a given name has already been defined. Function calls must use parentheses, with the exception of zero-argument class constructor functions called with the PHP operator new, in which case parentheses are optional.

Since PHP 4.0.1 create_function, a thin wrapper around eval, allowed normal PHP functions to be created during program execution; it was deprecated in PHP 7.2 and removed in PHP 8.0[223] in favor of syntax for anonymous functions or "closures"[224] that can capture variables from the surrounding scope, which was added in PHP 5.3. Shorthand arrow syntax was added in PHP 7.4:[225]

function getAdder($x)

$adder = getAdder(8);echo $adder(2); // prints "10"

In the example above, getAdder function creates a closure using passed argument, which takes an additional argument, and returns the created closure to the caller. Such a function is a first-class object, meaning that it can be stored in a variable, passed as a parameter to other functions, etc.[226]

Unusually for a dynamically typed language, PHP supports type declarations on function parameters, which are enforced at runtime. This has been supported for classes and interfaces since PHP 5.0, for arrays since PHP 5.1, for "callables" since PHP 5.4, and scalar (integer, float, string and boolean) types since PHP 7.0. PHP 7.0 also has type declarations for function return types, expressed by placing the type name after the list of parameters, preceded by a colon. For example, the getAdder function from the earlier example could be annotated with types like so in PHP 7:

function getAdder(int $x): Closure

$adder = getAdder(8);echo $adder(2); // prints "10"echo $adder(null); // throws an exception because an incorrect type was passed$adder = getAdder([]); // would also throw an exception

By default, scalar type declarations follow weak typing principles. So, for example, if a parameter's type is int, PHP would allow not only integers, but also convertible numeric strings, floats or Booleans to be passed to that function, and would convert them. However, PHP 7 has a "strict typing" mode which, when used, disallows such conversions for function calls and returns within a file.

PHP objects

Basic object-oriented programming functionality was added in PHP 3 and improved in PHP 4. This allowed for PHP to gain further abstraction, making creative tasks easier for programmers using the language. Object handling was completely rewritten for PHP 5, expanding the feature set and enhancing performance. In previous versions of PHP, objects were handled like value types.[227] The drawback of this method was that code had to make heavy use of PHP's "reference" variables if it wanted to modify an object it was passed rather than creating a copy of it. In the new approach, objects are referenced by handle, and not by value.

PHP 5 introduced private and protected member variables and methods, along with abstract classes, final classes, abstract methods, and final methods. It also introduced a standard way of declaring constructors and destructors, similar to that of other object-oriented languages such as C++, and a standard exception handling model. Furthermore, PHP 5 added interfaces and allowed for multiple interfaces to be implemented. There are special interfaces that allow objects to interact with the runtime system. Objects implementing ArrayAccess can be used with array syntax and objects implementing Iterator or IteratorAggregate can be used with the foreach language construct. There is no virtual table feature in the engine, so static variables are bound with a name instead of a reference at compile time.[228]

If the developer creates a copy of an object using the reserved word clone, the Zend engine will check whether a __clone method has been defined. If not, it will call a default __clone which will copy the object's properties. If a __clone method is defined, then it will be responsible for setting the necessary properties in the created object. For convenience, the engine will supply a function that imports the properties of the source object, so the programmer can start with a by-value replica of the source object and only override properties that need to be changed.[229]

The visibility of PHP properties and methods is defined using the keywords public, private, and protected. The default is public, if only var is used; var is a synonym for public. Items declared public can be accessed everywhere. protected limits access to inherited classes (and to the class that defines the item). private limits visibility only to the class that defines the item.[230] Objects of the same type have access to each other's private and protected members even though they are not the same instance.

Example

The following is a basic example of object-oriented programming in PHP 8:

abstract class User

class Student extends User

class Teacher extends User

$students = [new Student("Alice", "Computer Science"), new Student("Bob", "Computer Science"), new Student("Charlie", "Business Studies"), ];

$teachers = [new Teacher("Dan", ["Computer Science", "Information Security"]), new Teacher("Erin", ["Computer Science", "3D Graphics Programming"]), new Teacher("Frankie", ["Online Marketing", "Business Studies", "E-commerce"]),];

foreach ([$students, $teachers] as $users)

This program outputs the following:

Students:
Hello, my name is Alice, I learn Computer Science
Hello, my name is Bob, I learn Computer Science
Hello, my name is Charlie, I learn Business Studies
Teachers:
Hello, my name is Dan, I teach Computer Science, Information Security
Hello, my name is Erin, I teach Computer Science, 3D Graphics Programming
Hello, my name is Frankie, I teach Online Marketing, Business Studies, E-commerce

Implementations

The only complete PHP implementation is the original, known simply as PHP. It is the most widely used and is powered by the Zend Engine. To disambiguate it from other implementations, it is sometimes unofficially called "Zend PHP". The Zend Engine compiles PHP source code on-the-fly into an internal format that it can execute, thus it works as an interpreter.[231] [232] It is also the "reference implementation" of PHP, as PHP has no formal specification, and so the semantics of Zend PHP define the semantics of PHP. Due to the complex and nuanced semantics of PHP, defined by how Zend works, it is difficult for competing implementations to offer complete compatibility.

PHP's single-request-per-script-execution model, and the fact that the Zend Engine is an interpreter, leads to inefficiency; as a result, various products have been developed to help improve PHP performance. In order to speed up execution time and not have to compile the PHP source code every time the web page is accessed, PHP scripts can also be deployed in the PHP engine's internal format by using an opcode cache, which works by caching the compiled form of a PHP script (opcodes) in shared memory to avoid the overhead of parsing and compiling the code every time the script runs. An opcode cache, Zend Opcache, is built into PHP since version 5.5.[233] Another example of a widely used opcode cache is the Alternative PHP Cache (APC), which is available as a PECL extension.[234]

While Zend PHP is still the most popular implementation, several other implementations have been developed. Some of these are compilers or support JIT compilation, and hence offer performance benefits over Zend PHP at the expense of lacking full PHP compatibility. Alternative implementations include the following:

Licensing

See main article: PHP License.

PHP is free software released under the PHP License, which stipulates that:[239]

This restriction on the use of "PHP" makes the PHP License incompatible with the GNU General Public License (GPL), while the Zend License is incompatible due to an advertising clause similar to that of the original BSD license.[240]

Development and community

PHP includes various free and open-source libraries in its source distribution or uses them in resulting PHP binary builds. PHP is fundamentally an Internet-aware system with built-in modules for accessing File Transfer Protocol (FTP) servers and many database servers, including PostgreSQL, MySQL, Microsoft SQL Server and SQLite (which is an embedded database), LDAP servers, and others. Numerous functions are familiar to C programmers, such as those in the stdio family, are available in standard PHP builds.[241]

PHP allows developers to write extensions in C to add functionality to the PHP language. PHP extensions can be compiled statically into PHP or loaded dynamically at runtime. Numerous extensions have been written to add support for the Windows API, process management on Unix-like operating systems, multibyte strings (Unicode), cURL, and several popular compression formats. Other PHP features made available through extensions include integration with Internet Relay Chat (IRC), dynamic generation of images and Adobe Flash content, PHP Data Objects (PDO) as an abstraction layer used for accessing databases,[242] [243] [244] [245] [246] [247] [248] and even speech synthesis. Some of the language's core functions, such as those dealing with strings and arrays, are also implemented as extensions.[249] The PHP Extension Community Library (PECL) project is a repository for extensions to the PHP language.[250]

Some other projects, such as Zephir, provide the ability for PHP extensions to be created in a high-level language and compiled into native PHP extensions. Such an approach, instead of writing PHP extensions directly in C, simplifies the development of extensions and reduces the time required for programming and testing.[251]

By December 2018 the PHP Group consisted of ten people: Thies C. Arntzen, Stig Bakken, Shane Caraveo, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, and Andrei Zmievski.[252]

Zend Technologies provides a PHP Certification based on PHP 7[253] exam (and previously based on PHP 5.5) for programmers to become certified PHP developers.

The PHP Foundation

Founder:Automattic, Laravel, Acquia, Zend, Private Packagist, Symfony, Craft CMS, Tideways, PrestaShop, JetBrains[254]
Website:https://thephp.foundation

On 26 November 2021, the JetBrains blog announced the creation of The PHP Foundation, which will sponsor the design and development of PHP.[255]

YearCommitsReviewsRFCs
2022[256] 6832838
2023[257] 78470217
The foundation hires "Core Developers" to work on the PHP language's core repository. Roman Pronskiy, a member of the foundation's board, said that they aim to pay "market salaries" to developers.[258]

The response to the foundation has mostly been positive, with the foundation being praised for better supporting the language and helping to stop the decrease in the language's popularity.[259] [260] However, it has also been criticised for adding breaking changes to minor versions of PHP, such as in PHP 8.2 where initialising members of a class out-with the original class scope would cause depreciation errors,[261] these changes impacted a number of open source projects including WordPress.[262]

Germany's Sovereign Tech Fund provided more than 200,000 Euros to support the PHP Foundation.[263]

Installation and configuration

There are two primary ways for adding support for PHP to a web server – as a native web server module, or as a CGI executable. PHP has a direct module interface called server application programming interface (SAPI), which is supported by many web servers including Apache HTTP Server, Microsoft IIS and iPlanet Web Server. Some other web servers, such as OmniHTTPd, support the Internet Server Application Programming Interface (ISAPI), which is Microsoft's web server module interface. If PHP has no module support for a web server, it can always be used as a Common Gateway Interface (CGI) or FastCGI processor; in that case, the web server is configured to use PHP's CGI executable to process all requests to PHP files.[264]

PHP-FPM (FastCGI Process Manager) is an alternative FastCGI implementation for PHP, bundled with the official PHP distribution since version 5.3.3.[265] When compared to the older FastCGI implementation, it contains some additional features, mostly useful for heavily loaded web servers.[266]

When using PHP for command-line scripting, a PHP command-line interface (CLI) executable is needed. PHP supports a CLI server application programming interface (SAPI) since PHP 4.3.0.[267] The main focus of this SAPI is developing shell applications using PHP. There are quite a few differences between the CLI SAPI and other SAPIs, although they do share many of the same behaviours.[268]

PHP has a direct module interface called SAPI for different web servers;[269] in case of PHP 5 and Apache 2.0 on Windows, it is provided in form of a DLL file called,[270] which is a module that, among other functions, provides an interface between PHP and the web server, implemented in a form that the server understands. This form is what is known as a SAPI.

There are different kinds of SAPIs for various web server extensions. For example, in addition to those listed above, other SAPIs for the PHP language include the Common Gateway Interface and command-line interface.[271]

PHP can also be used for writing desktop graphical user interface (GUI) applications, by using the PHP-GTK extension. PHP-GTK is not included in the official PHP distribution, and as an extension, it can be used only with PHP versions 5.1.0 and newer. The most common way of installing PHP-GTK is by compiling it from the source code.[272]

When PHP is installed and used in cloud environments, software development kits (SDKs) are provided for using cloud-specific features. For example:

Numerous configuration options are supported, affecting both core PHP features and extensions.[275] [276] Configuration file php.ini is searched for in different locations, depending on the way PHP is used.[277] The configuration file is split into various sections,[278] while some of the configuration options can be also set within the web server configuration.[279]

Use

PHP is a general-purpose scripting language that is especially suited to server-side web development, in which case PHP generally runs on a web server. Any PHP code in a requested file is executed by the PHP runtime, usually to create dynamic web page content or dynamic images used on websites or elsewhere.[280] It can also be used for command-line scripting and client-side graphical user interface (GUI) applications. PHP can be deployed on most web servers, many operating systems and platforms, and can be used with many relational database management systems (RDBMS). Most web hosting providers support PHP for use by their clients. It is available free of charge, and the PHP Group provides the complete source code for users to build, customize and extend for their own use.[281]

Originally designed to create dynamic web pages, PHP now focuses mainly on server-side scripting,[282] and it is similar to other server-side scripting languages that provide dynamic content from a web server to a client, such as Python, Microsoft's ASP.NET, Sun Microsystems' JavaServer Pages,[283] and [[mod_perl]]. PHP has also attracted the development of many software frameworks that provide building blocks and a design structure to promote rapid application development (RAD). Some of these include PRADO, CakePHP, Symfony, CodeIgniter, Laravel, Yii Framework, Phalcon and Laminas, offering features similar to other web frameworks.

The LAMP architecture has become popular in the web industry as a way of deploying web applications.[284] PHP is commonly used as the P in this bundle alongside Linux, Apache and MySQL, although the P may also refer to Python, Perl, or some mix of the three. Similar packages, WAMP and MAMP, are also available for Windows and macOS, with the first letter standing for the respective operating system. Although both PHP and Apache are provided as part of the macOS base install, users of these packages seek a simpler installation mechanism that can be more easily kept up to date.

For specific and more advanced usage scenarios, PHP offers a well-defined and documented way for writing custom extensions in C or C++.[285] [286] [287] [288] [289] [290] [291] Besides extending the language itself in form of additional libraries, extensions are providing a way for improving execution speed where it is critical and there is room for improvements by using a true compiled language.[292] [293] PHP also offers well-defined ways for embedding itself into other software projects. That way PHP can be easily used as an internal scripting language for another project, also providing tight interfacing with the project's specific internal data structures.[294]

PHP received mixed reviews due to lacking support for multithreading at the core language level,[295] though using threads is made possible by the "pthreads" PECL extension.[296] [297]

A command line interface, php-cli, and two ActiveX Windows Script Host scripting engines for PHP have been produced.

Popularity and usage statistics

PHP is used for Web content management systems including MediaWiki,[298] WordPress,[299] Joomla,[300] Drupal,[301] Moodle,[302] eZ Publish, eZ Platform, and SilverStripe.[303]

, PHP was used in more than 240 million websites (39% of those sampled) and was installed on 2.1 million web servers.[304]

(eight months after PHP 8.3's release), PHP is used as the server-side programming language on 76.1% of websites where the language could be determined; PHP 7 is the most used version of the language with 53% of websites using PHP being on that version, while 32.5% use PHP 8, 14.3% use PHP 5 and 0.2% use PHP 4.[305]

Security

In 2019, 11% of all vulnerabilities listed by the National Vulnerability Database were linked to PHP;[306] historically, about 30% of all vulnerabilities listed since 1996 in this database are linked to PHP. Technical security flaws of the language itself or of its core libraries are not frequent (22 in 2009, about 1% of the total although PHP applies to about 20% of programs listed).[307] Recognizing that programmers make mistakes, some languages include taint checking to automatically detect the lack of input validation which induces many issues. Such a feature is being developed for PHP,[308] but its inclusion into a release has been rejected several times in the past.[309] [310]

There are advanced protection patches such as Suhosin and Hardening-Patch, specially designed for web hosting environments.[311]

Historically, old versions of PHP had some configuration parameters and default values for such runtime settings that made some PHP applications prone to security issues. Among these, [[magic quotes|magic_quotes_gpc]] and register_globals[312] configuration directives were the best known; the latter made any URL parameters become PHP variables, opening a path for serious security vulnerabilities by allowing an attacker to set the value of any uninitialized global variable and interfere with the execution of a PHP script. Support for "magic quotes" and "register globals" settings has been deprecated since PHP 5.3.0, and removed from PHP 5.4.0.[313]

Another example for the potential runtime-settings vulnerability comes from failing to disable PHP execution (for example by using the engine configuration directive)[314] for the directory where uploaded files are stored; enabling it can result in the execution of malicious code embedded within the uploaded files.[315] [316] [317] The best practice is to either locate the image directory outside of the document root available to the web server and serve it via an intermediary script or disable PHP execution for the directory which stores the uploaded files.

Also, enabling the dynamic loading of PHP extensions (via enable_dl configuration directive)[318] in a shared web hosting environment can lead to security issues.[319] [320]

Implied type conversions that result in different values being treated as equal, sometimes against the programmer's intent, can lead to security issues. For example, the result of the comparison is true, because strings that are parsable as numbers are converted to numbers; in this case, the first compared value is treated as scientific notation having the value, which is zero. Errors like this resulted in authentication vulnerabilities in Simple Machines Forum,[321] Typo3[322] and phpBB[323] when MD5 password hashes were compared. The recommended way is to use [https://secure.php.net/hash_equals hash_equals] (for timing attack safety), [[strcmp]] or the identity operator (===), as results in false.

In a 2013 analysis of over 170,000 website defacements, published by Zone-H, the most frequently (53%) used technique was the exploitation of file inclusion vulnerability, mostly related to insecure usage of the PHP language constructs include, require, and allow_url_fopen.[324] [325]

It is highly recommended to migrate to PHP 8.1 or later and use random_int[326] instead of rand[327] or mt_rand,[328] as the latter functions are not cryptographically secure. There are two attacks that can be performed over PHP entropy sources: "seed attack" and "state recovery attack". As of 2012, a $250 GPU can perform up to 2 MD5 calculations per second, while a $750 GPU can perform four times as many calculations at the same time.[329] In combination with a "birthday attack" this can lead to serious security vulnerabilities.

(8 months after PHP 8.3 release) W3Techs reports that 77.4% of websites using PHP, use versions 8.0 or older (which are no longer supported by The PHP Development Team).[330] PHP Version 5 is still used by 14.3% of all websites.

Zend offers paid active long-term support for PHP (PHP LTS) that includes security patches:

The period of paid support for each branch, starting from the release of the initial stable version, is at least 5 years.[331]

See also

Further reading

Notes and References

  1. Web site: Lerdorf . Rasmus . PHP on Hormones – history of PHP presentation by Rasmus Lerdorf given at the MySQL Conference in Santa Clara, California . 2007-04-26 . 2009-12-11 . The Conversations Network . 2019-01-06 . https://web.archive.org/web/20190106230504/http://web.archive.org/web/20130729204354id_/http://itc.conversationsnetwork.org/shows/detail3298.html . dead .
  2. Web site: PHP: News Archive - 2024. www.php.net.
  3. Web site: PHP: Function arguments – Manual. secure.php.net.
  4. Web site: PHP: Preface – Manual.
  5. dstogov . 672864802474229760 . Stogov . Dmitry . 2015-12-04 . It's not a secret that some #PHP7 optimization ideas came from HHVM, LuaJIT and V8. Thank you @HipHopVM @SaraMG. #php7thankyou.
  6. Web site: PHP: Release Archives (museum) . museum.php.net.
  7. Web site: PHP: Hypertext Preprocessor. www.php.net. 2020-02-12.
  8. Web site: Krill . Paul . 2013-11-18 . Believe the hype: PHP founder backs Facebook's HipHop technology . 2022-10-13 . InfoWorld . en.
  9. Web site: Announce: Personal Home Page Tools (PHP Tools) . 2022-11-03 . groups.google.com.
  10. Web site: 2008-02-25. History of PHP and related projects . The PHP Group.
  11. Web site: History of PHP . php.net.
  12. Book: Olsson, Mikael . PHP Quick Scripting Reference . 2013-09-04 . Apress . 978-1-4302-6284-8 . en.
  13. https://php.net/manual/en/preface.php PHP Manual: Preface
  14. Web site: Introduction: What can PHP do? . PHP Manual . 2009-03-05.
  15. Web site: PHP: Unsupported Branches. www.php.net.
  16. Web site: I wonder why people keep writing that PHP was ever written in Perl. It never was. #php . Lerdorf . Rasmus . Twitter . 2012-07-20 . 2014-09-04.
  17. Web site: PHP on Hormones . mp3 . Lerdorf . Rasmus . The Conversations Network . 2007-04-26 . 2009-06-22 . 2019-01-06 . https://web.archive.org/web/20190106230504/http://web.archive.org/web/20130729204354id_/http://itc.conversationsnetwork.org/shows/detail3298.html . dead .
  18. Web site: Lerdorf. Rasmus. 2007. Slide 3. 2009-06-22. slides for 'PHP on Hormones' talk. The PHP Group.
  19. Web site: Announce: Personal Home Page Tools (PHP Tools). Lerdorf. Rasmus. June 8, 1995. 7 June 2011.
  20. Announce: Personal Home Page Tools (PHP Tools) . Lerdorf, Rasmus . 1995-06-08 . comp.infosystems.www.authoring.cgi . 2006-09-17.
  21. Web site: Rasmus Lerdorf, Senior Technical Yahoo: PHP, Behind the Mic. 2003-11-19. https://web.archive.org/web/20130728125152/http://itc.conversationsnetwork.org/shows/detail58.html. 2013-07-28.
  22. Web site: Alshetwi . A.B. . Rahmat . R. A. A. O. . Borhan . M. N. . Ismael . S. . Ali . A. . Irtema . H. I. M. . Alfakhria . A. Y. . 2018 . Web-Based Expert System for Optimizing of Traffic Road in Developing Countries . 13 Feb 2024.
  23. Web site: Problems with PHP. 20 December 2010.
  24. Web site: php.internals: Re: Function name consistency . news.php.net . 2013-12-28 . 2014-02-09.
  25. Re: Flexible function naming . . Dec 16, 2013 . php.internals . December 26, 2013.
  26. Web site: PHP Acronym Meaning Vote . PHP.net . August 15, 2000 . dead . https://web.archive.org/web/20000815063125/http://il.php.net/vote_listing.php3.
  27. Web site: Zend Engine version 2.0: Feature Overview and Design . Zend Technologies Ltd. . 2006-09-17 . https://web.archive.org/web/20060719204721/http://www.zend.com/zend/zend-engine-summary.php . 2006-07-19 . dead.
  28. Web site: php.net 2007 news archive. The PHP Group. 2008-02-22. 2007-07-13.
  29. Web site: 2018-12-16 . PHP 4 is Dead—Long Live PHP 5 . InternetNews . 2008-02-01 . Kerner . Sean Michael . https://web.archive.org/web/20180806115411/http://www.internetnews.com/dev-news/article.php/3725291 . 2018-08-06.
  30. Web site: Why PHP 5 Rocks!. O'Reilly. 2008-02-22. 2004-07-15. Trachtenberg, Adam. 2016-03-31. https://web.archive.org/web/20160331232050/http://www.onlamp.com/pub/a/php/2004/07/15/UpgradePHP5.html. dead.
  31. Web site: Late Static Binding in PHP. 2008-03-25. 2006-02-23. Digital Sandwich.
  32. Web site: 2008-03-25. Static Keyword. The PHP Group.
  33. Web site: GoPHP5 . dead . https://web.archive.org/web/20110717133313/http://gophp5.org/projects . 2011-07-17.
  34. Web site: PHP projects join forces to Go PHP 5 . 2008-02-23 . GoPHP5 Press Release . dead . https://web.archive.org/web/20190804012720/http://gophp5.org/sites/gophp5.org/files/press_release.pdf . 2019-08-04.
  35. Web site: GoPHP5. GoPHP5. 2008-02-22 . dead . https://web.archive.org/web/20110427101913/http://www.gophp5.org/ . 2011-04-27.
  36. Web site: PHP Installation and Configuration. 2013-10-29. php.net.
  37. Web site: PHP for Windows: Binaries and sources releases (5.3). 2013-10-29. php.net.
  38. Web site: PHP for Windows: Binaries and sources releases (5.4). 2013-10-29. php.net.
  39. Web site: PHP for Windows: Binaries and sources releases (5.5). 2013-10-29. php.net.
  40. Web site: PHP: Supported Versions.
  41. Web site: Types: Strings (PHP Manual). 2013-09-22. PHP.net.
  42. Web site: Details of the String Type (PHP Manual). 2021-09-22. PHP.net.
  43. PHP Unicode support design document. 2005-08-10. 2014-02-09. Andrei Zmievski.
  44. Web site: PHP 5.5 or 6.0. 2014-02-09.
  45. Web site: The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6. 2014-02-09. Andrei Zmievski. 2011-04-22.
  46. PHP 6. 2014-02-07. 2010-03-11. Rasmus Lerdorf.
  47. Web site: The Neverending Muppet Debate of PHP 6 v PHP 7. 2015-11-19. https://web.archive.org/web/20151119132438/https://philsturgeon.uk/php/2014/07/23/neverending-muppet-debate-of-php-6-v-php-7/. 2015-11-19. dead.
  48. Web site: RFC: Name of Next Release of PHP . 2014-07-07 . 2014-07-15 . php.net.
  49. Web site: Re: [PHP-DEV] [VOTE] [RFC] Name of Next Release of PHP (again) ]. 2014-07-30 . 2014-07-30.
  50. Web site: phpng: Refactored PHP Engine with Big Performance Improvement. news.php.net.
  51. Web site: PHP: rfc:phpng . 16 December 2014 . php.net.
  52. Web site: PHP: phpng . php.net . 2014-07-15.
  53. Web site: Merge branch 'ZendEngine3'. github.com . 2014-12-05 . 2014-12-05 .
  54. Web site: PHP RFC: Uniform Variable Syntax . 2014-05-31 . 2014-07-30 . php.net.
  55. Web site: Online PHP editor | output for udRhX. 3v4l.org.
  56. Web site: PHP RFC: Fix "foreach" behavior. 2015-05-21. php.net.
  57. Web site: PHP RFC: Constructor behaviour of internal classes. 2015-05-21. php.net.
  58. Web site: PHP RFC: Removal of dead or not yet PHP7 ported SAPIs and extensions. 2015-05-21. php.net.
  59. Web site: PHP RFC: Fix list behavior inconsistency. 2015-05-21. php.net.
  60. Web site: PHP RFC: Remove alternative PHP tags. 2015-05-21. php.net.
  61. Web site: PHP RFC: Make defining multiple default cases in a switch a syntax error. 2015-05-21. php.net.
  62. Web site: PHP RFC: Remove hex support in numeric strings. 2015-05-21. php.net.
  63. Web site: PHP RFC: Integer Semantics. 2015-05-21. Making NaN and Infinity always become zero when cast to integer means more cross-platform consistency, and is also less surprising than what is currently produces. php.net.
  64. Web site: PHP RFC: ZPP Failure on Overflow. 2015-05-21. php.net.
  65. Web site: RFC: Return Types . 2015-01-27 . 2015-01-28 . php.net.
  66. Web site: RFC: Scalar Type Declarations . 2015-03-16 . 2015-03-17 . php.net.
  67. Web site: Brent . What's new in PHP 8 . Stitcher . 22 September 2020.
  68. Web site: PHP 8 Released. PHP . 27 November 2020.
  69. Web site: Brent . PHP 8: JIT performance in real-life web applications . Stitcher.io . 4 October 2020.
  70. Web site: Rethams . Derick . PHP 8: A Quick Look at JIT .
  71. Web site: Popov . Nikita . "What's new in PHP 8.0?" Nikita Popov . 13 July 2020 . https://ghostarchive.org/varchive/youtube/20211211/NbBRXwu1Md8. 2021-12-11 . live. PHP fwdays . 4 October 2020.
  72. Web site: Daniele . Carlo . What's New in PHP 8 (Features, Improvements, and the JIT Compiler) . Kinsta . 25 May 2020 . 24 December 2020.
  73. Web site: Redmond . Paul . Match Expression is Coming to PHP 8 . Laravel News . 15 July 2020 . 4 October 2020.
  74. Web site: PHP 8.0: Match Expressions . PHP Watch . 4 October 2020.
  75. Web site: Barnes . Eric . PHP 8 is now Released! . Laravel News . 27 November 2020 . 24 December 2020 . laravel-news-php-8-released.
  76. Web site: Roose . Brent . PHP 8: Constructor property promotion . 30 April 2024.
  77. Web site: Merchant . Amit . These new string functions are coming in PHP 8 . Amit Merchant . 13 June 2020 . 4 October 2020.
  78. Web site: Popov . Nikita . Call for participation: Annotating internal function argument and return types . Externals . 19 November 2020.
  79. Web site: PHP 8 ChangeLog . 2024-01-05 . PHP.net.
  80. Web site: PHP: PHP 8.1.0 Release Announcement . 2024-01-05 . PHP.net.
  81. Web site: PHP 8 ChangeLog . 2024-01-05 . PHP.net.
  82. Web site: PHP: PHP 8.2.0 Release Announcement . 2024-01-05 . PHP.net.
  83. Web site: Unsupported Branches . php.net . 2019-07-31.
  84. Web site: PHP 4.0.0 Released . 25 October 2020.
  85. Web site: PHP: PHP 4 ChangeLog. The PHP Group. 2008-02-22. 2008-01-03.
  86. Web site: PHP 4.1.0 Release Announcement . 25 October 2020.
  87. Web site: PHP 4.2.0 Release Announcement . 25 October 2020.
  88. Web site: PHP 4.3.0 Release Announcement . 25 October 2020.
  89. Web site: Using PHP from the command line . PHP Manual. The PHP Group. 2009-09-11.
  90. Web site: PHP 4.4.0 Release Announcement . 25 October 2020.
  91. Web site: PHP 4.4.0 Release Announcement. PHP Mannual. The PHP Group. 2013-11-24.
  92. Web site: PHP 5.0.0 Released! . 25 October 2020.
  93. Web site: PHP: PHP 5 ChangeLog. The PHP Group. 2008-02-22. 2007-11-08.
  94. Web site: PHP 5.1.0 Release Announcement . 25 October 2020.
  95. Web site: PHP manual: PDO. The PHP Group. 2011-11-15. 2011-11-15.
  96. Web site: PHP 5.2.0 Release Announcement . 25 October 2020.
  97. Web site: PHP 5.3.0 Release Announcement . 25 October 2020.
  98. Web site: PHP 5.4.0 Release Announcement . 25 October 2020.
  99. Web site: Built-in web server . March 26, 2012.
  100. Web site: PHP 5.5.0 Release Announcement . 25 October 2020.
  101. Web site: Supported Versions . php.net . 2017-12-13.
  102. Web site: PHP 5.5.0 changes. 2015-03-03. php.net.
  103. Web site: PHP 5.6.0 Release Announcement . 25 October 2020.
  104. Web site: Migrating from PHP 5.5.x to PHP 5.6.x . 2014-03-24 . php.net.
  105. Web site: Resetting PHP 6. There have been books on the shelves purporting to cover PHP 6 since at least 2008. But, in March 2010, the PHP 6 release is not out in fact, it is not even close to out. Recent events suggest that PHP 6 will not be released before 2011 if, indeed, it is released at all..
  106. Web site: PHP 7 moves full speed ahead. Recent versions of PHP have been part of the 5.x release series, but there will be no PHP 6. "We're going to skip [version] 6, because years ago, we had plans for a 6, but those plans were very different from what we're doing now," Gutmans said. Going right to version 7 avoids confusion.. 2014-10-31.
  107. Web site: News Archive – 2018: PHP 7.2.9 Released . 2018-08-16 . 2018-08-16 . php.net.
  108. Web site: PHP: rfc:size_t_and_int64_next. php.net. 16 December 2014.
  109. Web site: PHP: rfc:abstract_syntax_tree. php.net. 16 December 2014.
  110. Web site: PHP: rfc:closure_apply. php.net. 16 December 2014.
  111. Web site: PHP: rfc:integer_semantics. php.net. 16 December 2014.
  112. Web site: PHP: rfc:isset_ternary. php.net. 16 December 2014.
  113. Web site: RFC: Unicode Codepoint Escape Syntax. 2014-11-24. 2014-12-19.
  114. Web site: Combined Comparison (Spaceship) Operator. php.net. 2015-05-21.
  115. Web site: PHP RFC: Generator Delegation. 2015-05-21. php.net.
  116. Web site: PHP RFC: Anonymous Classes. 2015-05-21. php.net.
  117. Web site: PHP RFC: Easy User-land CSPRNG. 2015-05-21. php.net.
  118. Web site: PHP RFC: Exceptions in the engine (for PHP 7). 2015-05-21. php.net.
  119. Web site: PHP RFC: Group Use Declarations. 2015-05-21. php.net.
  120. Web site: PHP: rfc:iterable. php.net. 2016-06-10. 2023-06-30.
  121. Web site: PHP: rfc:nullable_types. php.net. 2014-04-10. 2023-06-30.
  122. Web site: PHP: rfc:void_return_type. php.net. 2015-11-09. 2015-11-14.
  123. Web site: PHP: rfc:class_constant_visibility. php.net. 2015-10-27. 2015-12-08.
  124. Web site: PHP: rfc:short_list_syntax. php.net. 2016-04-07. 2023-06-30.
  125. Web site: PHP: rfc:multiple-catch. php.net. 2016-03-06. 2023-06-30.
  126. Web site: PHP: rfc:object-typehint. wiki.php.net.
  127. Web site: PHP: rfc:libsodium. wiki.php.net.
  128. Web site: PHP: rfc:allow-abstract-function-override. wiki.php.net.
  129. Web site: PHP: rfc:parameter-no-type-variance. wiki.php.net.
  130. Web site: PHP: todo:php73. wiki.php.net.
  131. Web site: PHP: rfc:flexible_heredoc_nowdoc_syntaxes. wiki.php.net.
  132. Web site: PHP: rfc:list_reference_assignment. wiki.php.net.
  133. Web site: PHP: rfc:pcre2-migration. wiki.php.net.
  134. Web site: PHP: hrtime Manual. php.net.
  135. Web site: PHP 7.4.0 Released!. php.net. 2019-11-28.
  136. Web site: PHP: rfc:typed_properties_v2. wiki.php.net. 2019-04-04.
  137. Web site: PHP: rfc:preload. wiki.php.net. 2019-04-04.
  138. Web site: PHP: rfc:null_coalesce_equal_operator. wiki.php.net. 2019-04-04.
  139. Web site: PHP: rfc:improve-openssl-random-pseudo-bytes. wiki.php.net. 2019-04-04.
  140. Web site: PHP: rfc:weakrefs. wiki.php.net. 2019-04-05.
  141. Web site: PHP: rfc:ffi. wiki.php.net. 2019-04-05.
  142. Web site: PHP: rfc:permanent_hash_ext. wiki.php.net. 2019-04-05.
  143. Web site: PHP: rfc:password_registry. wiki.php.net. 2019-04-05.
  144. Web site: PHP: rfc:mb_str_split. wiki.php.net. 2019-04-05.
  145. Web site: PHP: rfc:reference_reflection. wiki.php.net. 2019-04-05.
  146. Web site: PHP: rfc:deprecate-and-remove-ext-wddx. wiki.php.net. 2019-04-05.
  147. Web site: PHP: rfc:custom_object_serialization. wiki.php.net. 2019-04-05.
  148. Web site: PHP: Supported Versions. php.net. 2023-11-26.
  149. Web site: PHP: rfc:jit. wiki.php.net. 2019-04-05.
  150. Web site: PHP: rfc:negative_array_index. wiki.php.net. 2019-04-05.
  151. Web site: PHP RFC: Validation for abstract trait methods . wiki.php.net . 14 August 2020.
  152. Web site: PHP RFC: Saner string to number comparisons . wiki.php.net . 14 August 2020.
  153. Web site: PHP RFC: Saner numeric strings . wiki.php.net . 14 August 2020.
  154. Web site: PHP RFC: Stricter type checks for arithmetic/bitwise operators . wiki.php.net . 14 August 2020.
  155. Web site: PHP RFC: Reclassifying engine warnings . wiki.php.net . 14 August 2020.
  156. Web site: PHP: rfc:consistent_type_errors. wiki.php.net. 2019-04-05.
  157. Web site: PHP: rfc:lsp_errors. wiki.php.net. 2019-05-26.
  158. Web site: PHP RFC: Locale-independent float to string cast . wiki.php.net . 14 August 2020.
  159. Web site: PHP RFC: Variable Syntax Tweaks . wiki.php.net . 14 August 2020.
  160. Web site: PHP RFC: Attributes V2 . wiki.php.net . 14 August 2020.
  161. Web site: PHP RFC: Attribute Amendments. wiki.php.net . 14 August 2020.
  162. Web site: PHP RFC: Shorter Attribute Syntax. 2020-06-20. wiki.php.net.
  163. Web site: PHP RFC: Shorter Attribute Syntax Change . wiki.php.net . 14 August 2020.
  164. Web site: PHP RFC: Named Arguments . wiki.php.net . 14 August 2020.
  165. Web site: PHP RFC: Match expression v2 . wiki.php.net . 14 August 2020.
  166. Web site: PHP RFC: Constructor Property Promotion . wiki.php.net . 14 August 2020.
  167. Web site: PHP RFC: Union Types 2.0 . wiki.php.net . 14 August 2020.
  168. Web site: PHP RFC: Mixed Type v2 . wiki.php.net . 14 August 2020.
  169. Web site: PHP RFC: Static return type . wiki.php.net . 14 August 2020.
  170. Web site: PHP RFC: Nullsafe operator . wiki.php.net . 14 August 2020.
  171. Web site: PHP RFC: non-capturing catches . wiki.php.net . 14 August 2020.
  172. Web site: PHP RFC: throw expression . wiki.php.net . 14 August 2020.
  173. Web site: Andre . Tyson . PHP RFC: Always available JSON extension . PHP . 25 October 2020.
  174. Web site: PHP: todo:php81 . 2022-06-16 . wiki.php.net.
  175. Web site: PHP RFC: Explicit octal integer literal notation. wiki.php.net. 2020-11-25.
  176. Web site: PHP RFC: Enumerations. wiki.php.net. 2021-03-25.
  177. Web site: PHP: rfc:readonly_properties_v2. 2021-11-26. wiki.php.net.
  178. Web site: PHP: rfc:first_class_callable_syntax. 2021-11-26. wiki.php.net.
  179. Web site: PHP: rfc:new_in_initializers. 2021-11-26. wiki.php.net.
  180. Web site: PHP: rfc:pure-intersection-types. 2021-11-26. wiki.php.net.
  181. Web site: PHP: rfc:noreturn_type. 2021-11-26. wiki.php.net.
  182. Web site: PHP: rfc:final_class_const. 2021-11-26. wiki.php.net.
  183. Web site: PHP: rfc:fibers. 2021-11-26. wiki.php.net.
  184. Web site: PHP: todo:php82 . 2022-06-16 . wiki.php.net.
  185. Web site: PHP: rfc:readonly_classes . 2022-06-16 . wiki.php.net.
  186. Web site: PHP: rfc:null-false-standalone-types . 2022-06-16 . wiki.php.net.
  187. Web site: PHP: rfc:true-type . 2022-06-16 . wiki.php.net.
  188. Web site: PHP: rfc:strtolower-ascii . 2022-06-16 . wiki.php.net.
  189. Web site: PHP: rfc:dnf_types . 2023-02-07 . wiki.php.net.
  190. Web site: PHP: rfc:constants_in_traits . 2023-02-07 . wiki.php.net.
  191. Web site: 23 November 2023 . PHP 8.3.0 Released! . 24 November 2023 . php.net.
  192. Web site: PHP: rfc:typed_class_constants . 2023-12-17 . wiki.php.net.
  193. Web site: PHP: rfc:dynamic_class_constant_fetch . 2023-12-17 . wiki.php.net.
  194. Web site: PHP: rfc:marking_overriden_methods . 2023-12-17 . wiki.php.net.
  195. Web site: PHP: rfc:readonly_amendments . 2023-12-17 . wiki.php.net.
  196. Web site: PHP: rfc:json_validate . 2023-12-17 . wiki.php.net.
  197. Web site: PHP: rfc:randomizer_additions . 2023-12-17 . wiki.php.net.
  198. Web site: 26 March 2024 . PHP: todo: php84. 26 March 2024 . php.net.
  199. Web site: PHP: Release Process. 2013-10-06. 2011-06-20.
  200. Web site: PHP: ElePHPant. 4 Oct 2014. 4 Oct 2014.
  201. Web site: Redirecting…. wwphp-fb.github.io.
  202. Web site: The PHP Mascot's Birth - Creator Of The elePHPant Vincent Pontier Reveals The True Story!. 7php.com. 2014-01-06.
  203. Web site: ElePHPant . 2024-02-13 . PHP.earth . en.
  204. Web site: PHP: ElePHPant. www.php.net.
  205. Web site: A Field Guide to Elephpants. afieldguidetoelephpants.net.
  206. Web site: tags Manual . php.net . 2014-02-17.
  207. Web site: PHP: Basic syntax. The PHP Group. 2008-02-22.
  208. Web site: 2016-01-03. Basic Coding Standard. PHP Framework Interoperability Group.
  209. Web site: echo Manual . php.net . 2014-02-17.
  210. Web site: Description of core php.ini directives Manual . php.net . 2002-03-17 . 2014-02-17.
  211. Web site: PHP: rfc:shortags . php.net . 2008-04-03 . 2014-05-08 .
  212. Web site: 2008-02-25. Your first PHP-enabled page . The PHP Group.
  213. Web site: Processing Instructions . Extensible Markup Language (XML) 1.0 (Fifth Edition) . W3C . 26 November 2008 . Bray . Tim . 2009-06-18. etal.
  214. Web site: 2008-03-16. Variables . The PHP Group.
  215. Web site: 2008-03-16. Instruction separation . The PHP Group.
  216. Web site: 2008-03-16. Comments . The PHP Group.
  217. Web site: Integers in PHP, running with scissors, and portability . March 27, 2007 . MySQL Performance Blog . 2007-03-28.
  218. Web site: 2008-03-16. Types . The PHP Group.
  219. Web site: 2008-03-21. Strings . The PHP Group.
  220. Web site: SPL – StandardPHPLibrary . March 16, 2009 . PHP.net . 2009-03-16.
  221. Web site: User-defined functions (PHP manual). 2014-07-04 . 2014-07-07. php.net.
  222. Web site: Variable functions (PHP manual). 2014-07-04 . 2014-07-07. php.net.
  223. Web site: create_function (PHP manual). 2022-04-06 . 2022-05-04. php.net.
  224. Web site: Anonymous functions (PHP manual). 2014-07-04 . 2014-07-07. php.net.
  225. Web site: Arrow Functions (PHP manual). 2021-01-25. php.net.
  226. Web site: Request for Comments: Lambda functions and closures. 2008-07-01 . 2014-07-07. Christian Seiler . Dmitry Stogov. php.net.
  227. Web site: 2008-03-16. PHP 5 Object References . mjtsai.com.
  228. Web site: 2008-03-16. Classes and Objects (PHP 5) . The PHP Group.
  229. Web site: 2008-03-16. Object cloning . The PHP Group.
  230. Web site: Visibility (PHP Manual) . theserverpages.com . 2005-05-19 . 2010-08-26 . 2010-09-24 . https://web.archive.org/web/20100924033414/http://theserverpages.com/php/manual/en/language.oop5.visibility.php . dead .
  231. Web site: 2009-11-04. How do computer languages work?. 2011-07-16. https://web.archive.org/web/20110716214917/http://www.linux-tutorial.info/modules.php?name=Howto&pagename=Unix-and-Internet-Fundamentals-HOWTO/languages.html. dead.
  232. Book: Beginning PHP and MySQL 5: From Novice to Professional . Gilmore, W. Jason . 43 . 2006-01-23 . Apress . 1590595521 .
  233. Web site: [VOTE] Integrating Zend Optimizer+ into the PHP distribution]. 2013-03-08. news.php.net.
  234. Web site: Alternative PHP Cache. 2013-09-21. PHP.net. 2013-11-15. https://web.archive.org/web/20131115071936/http://php.net/manual/en/book.apc.php. dead.
  235. Web site: We are the 98.5% (and the 16%) « HipHop Virtual Machine . hhvm.com . December 2013 . 2014-02-23.
  236. Web site: The Definitive PHP 5.6, 7.0, 7.1, 7.2 & 7.3 Benchmarks (2019). 2019-01-14 . 2019-04-19.
  237. Web site: Forget PHP! Facebook's HHVM engine switches to Hack instead. Krill. Paul. 2017-09-20. InfoWorld . 2019-02-06.
  238. Web site: Announcement on GitHub removing HPHPc support. GitHub. 2013-05-24.
  239. Web site: The PHP License, version 3.01. 2010-05-20.
  240. Web site: GPL-Incompatible, Free Software Licenses . Various Licenses and Comments about Them . Free Software Foundation. 2011-01-03.
  241. Web site: 2015-01-14. PHP: Function and Method listing Manual . The PHP Group.
  242. Web site: Introduction Manual . php.net . 2013-06-07 . 2013-06-13.
  243. Web site: Simplify Business Logic with PHP DataObjects — O'Reilly Media. Darryl Patterson. 5 August 2004. ibm.com. 16 December 2014. 16 December 2014. https://web.archive.org/web/20141216140653/http://www.onlamp.com/pub/a/php/2004/08/05/dataobjects.html. dead.
  244. Web site: IBM — United States. 16 December 2014.
  245. Web site: Five common PHP database problems . ibm.com . 2006-08-01 . 2013-06-13.
  246. Web site: IBM Redbooks — Developing PHP Applications for IBM Data Servers. redbooks.ibm.com. 16 December 2014.
  247. Web site: php[architect] Magazine - The Journal for PHP Programmers]. www.phparch.com.
  248. PHP catching on at enterprises, vying with Java. Krill. Paul. 19 October 2005. InfoWorld. https://web.archive.org/web/20140713004345/http://www.infoworld.com/d/developer-world/php-catching-enterprises-vying-java-708. 13 July 2014.
  249. Web site: Cross Reference: /PHP_5_4/ext/standard/. https://web.archive.org/web/20120316010914/http://lxr.php.net/xref/PHP_5_4/ext/standard/. dead. 16 March 2012. php.net. 16 December 2014.
  250. Web site: 2008-02-25. Developing Custom PHP Extensions . devnewz.com . 2002-09-09 . https://web.archive.org/web/20080218045752/http://www.devnewz.com/090902b.html . 2008-02-18.
  251. Web site: Why Zephir?. 2015-10-20 . 2015-12-14. zephir-lang.com.
  252. Web site: PHP Credits. 2018-12-16.
  253. Web site: Learn PHP Via PHP Training and PHP Certification. 2020-11-16. www.zend.com.
  254. Web site: Walker . James . 2021-12-13 . What the New PHP Foundation Means for PHP's Future . 2023-11-26 . How-To Geek . en.
  255. Web site: The New Life of PHP – The PHP Foundation The PhpStorm Blog . 2022-06-16 . The JetBrains Blog . 22 November 2021 . en-US.
  256. Web site: The PHP Foundation: Impact and Transparency Report 2022 . 2023-11-27 . thephp.foundation . en.
  257. Web site: Pronskiy . Roman . 2024-02-26 . The PHP Foundation: Impact and Transparency Report 2023 . 2024-04-01 . The PHP Foundation.
  258. Web site: Anderson . Tim . PHP Foundation formed to fund core developers . 2023-12-05 . www.theregister.com . en.
  259. Web site: Programming languages: This old favourite is gaining popularity again . 2023-12-05 . ZDNET . en.
  260. Web site: PHP 8.1 Released With Enums, Read-Only Properties and Fibers . 2023-12-05 . www.i-programmer.info.
  261. Web site: It's time for the PHP Foundation to #StopBreakingPHP . 2023-11-27 . trongate.io.
  262. Web site: 2023-11-16 . WordPress 6.4 PHP Compatibility . 2023-11-27 . Make WordPress Hosting . en-US.
  263. Web site: PHP . 2024-05-26 . Sovereign Tech Fund . en.
  264. Web site: General Installation Considerations. 2013-09-22. php.net.
  265. Web site: News Archive: PHP 5.3.3 Released!. 2010-07-22. php.net.
  266. Web site: FastCGI Process Manager (FPM). 2013-09-22. php.net.
  267. Web site: Command line usage: Introduction. 2013-09-22. php.net.
  268. Web site: Command line usage: Differences to other SAPIs. 2013-09-22. php.net.
  269. Web site: General Installation Considerations. 2013-09-22. php.net.
  270. Web site: PHP: Apache 2.x on Microsoft Windows. 2013-09-22. php.net. dead. https://web.archive.org/web/20130926122011/http://php.net/manual/en/install.windows.apache2.php. 2013-09-26.
  271. Web site: Command line usage: Introduction. 2013-09-22. php.net.
  272. Web site: Installing PHP-GTK 2. 2013-09-22. php.net. 2013-12-12. https://web.archive.org/web/20131212093441/http://gtk.php.net/manual/en/tutorials.installation.php. dead.
  273. Web site: AWS SDK for PHP . aws.amazon.com . 2014-03-06.
  274. Web site: Windows Azure SDK for PHP — Interoperability Bridges and Labs Center . interoperabilitybridges.com . 2014-03-06 . dead . https://web.archive.org/web/20140320152702/http://www.interoperabilitybridges.com/projects/php-sdk-for-windows-azure.aspx . 2014-03-20 .
  275. Web site: Runtime configuration: Table of contents. 2013-09-22. php.net.
  276. Web site: php.ini directives: List of php.ini directives. 2013-09-22. php.net.
  277. Web site: Runtime configuration: The configuration file. 2013-09-22. PHP.net.
  278. Web site: php.ini directives: List of php.ini sections. 2013-09-22. PHP.net.
  279. Web site: Runtime configuration: Where a configuration setting may be set. 2013-09-22. PHP.net.
  280. Web site: PHP Manual Image Processing and GD; . php.net . 2011-04-09.
  281. Web site: 2008-02-25. Embedding PHP in HTML. O'Reilly. 2001-05-03. 2008-02-19. https://web.archive.org/web/20080219180226/http://www.onlamp.com/pub/a/php/2001/05/03/php_foundations.html. dead.
  282. Web site: PHP Server-Side Scripting Language. Indiana University. 2008-02-25. 2007-04-04. https://web.archive.org/web/20160121223739/http://webmaster.iu.edu/tools-and-guides/programming-languages/php.phtml. 2016-01-21.
  283. Web site: JavaServer Pages Technology — JavaServer Pages Comparing Methods for Server-Side Dynamic Content White Paper. Sun Microsystems. 2008-02-25.
  284. Web site: Five simple ways to tune your LAMP application. . 2011-01-25.
  285. Web site: PHP at the core: Extension structure. 2013-09-22. PHP.net. 2013-09-26. https://web.archive.org/web/20130926082102/http://www.php.net/manual/en/internals2.structure.php. dead.
  286. Web site: PHP at the core: The "counter" Extension – A Continuing Example. 2013-09-22. PHP.net. 2013-09-26. https://web.archive.org/web/20130926082106/http://www.php.net/manual/en/internals2.counter.php. dead.
  287. Web site: Extension Writing Part I: Introduction to PHP and Zend. 2005-03-01. 2013-09-22. Zend Technologies. https://web.archive.org/web/20130924233638/http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/. 2013-09-24. dead.
  288. Web site: Extension Writing Part II: Parameters, Arrays, and ZVALs. 2005-06-06. 2013-09-22. Zend Technologies. https://web.archive.org/web/20130926091658/http://devzone.zend.com/317/extension-writing-part-ii-parameters-arrays-and-zvals/. 2013-09-26. dead.
  289. Web site: Extension Writing Part II: Parameters, Arrays, and ZVALs (continued). 2005-06-06. 2013-09-22. Zend Technologies. https://web.archive.org/web/20130926091655/http://devzone.zend.com/318/extension-writing-part-ii-parameters-arrays-and-zvals-continued/. 2013-09-26. dead.
  290. Web site: Extension Writing Part III: Resources. 2006-05-12. 2013-09-22. Zend Technologies. https://web.archive.org/web/20130926091645/http://devzone.zend.com/446/extension-writing-part-iii-resources/. 2013-09-26. dead.
  291. Web site: Wrapping C++ Classes in a PHP Extension. 2009-04-22. 2013-09-22. Zend Technologies. https://web.archive.org/web/20130920011549/http://devzone.zend.com/1435/wrapping-c-classes-in-a-php-extension/. 2013-09-20. dead.
  292. Web site: Extending PHP with C++?. 2013-09-22. Stack Overflow.
  293. Web site: How can I use C++ code to interact with PHP?. 2013-09-22. Stack Overflow.
  294. Book: Golemon , Sara . Extending and Embedding PHP. 2006. Sams . 978-0-672-32704-9.
  295. Web site: Request #46919: Multithreading. 2013-09-22. PHP.net.
  296. Web site: pthreads: Introduction (PHP Manual). 2013-09-22. PHP.net.
  297. Web site: PECL :: Package :: pthreads . pecl.php.net . 2014-02-09.
  298. Web site: 2010-01-25. Manual:Installation requirements#PHP. 2010-02-26. MediaWiki. PHP is the programming language in which MediaWiki is written [...].
  299. Web site: About WordPress. 2010-02-26. WordPress was [...] built on PHP.
  300. Web site: Kempkens. Alex. Joomla! — Content Management System to build websites & apps.
  301. Web site: PHP and Drupal. 16 September 2007. 2010-06-13. Drupal.org. 2010-02-08. https://web.archive.org/web/20100208205523/http://drupal.org/node/176052. dead.
  302. Web site: About. 2009-12-20. Moodle.org. 2010-01-11. https://web.archive.org/web/20100111055644/http://docs.moodle.org/en/About_Moodle. dead.
  303. Web site: Server requirements of SilverStripe. dead. https://web.archive.org/web/20141128063118/http://doc.silverstripe.org/framework/en/installation/server-requirements. 28 November 2014. 13 October 2014. SilverStripe requires PHP 5.3.2+.
  304. Web site: PHP just grows & grows . 2013-01-31 . 2013-04-01 . Ide, Andy.
  305. Web site: Usage statistics of PHP for websites . W3Techs – World Wide Web Technology Surveys . W3Techs . 23 July 2024.
  306. Web site: National Vulnerability Database (NVD) Search Vulnerabilities Statistics . 2019-11-22.
  307. Web site: PHP-related vulnerabilities on the National Vulnerability Database. 2012-07-05. 2013-04-01. 2009-06-28. https://web.archive.org/web/20090628173101/http://www.coelho.net/php_cve.html. dead.
  308. Web site: PHP: rfc:taint. wiki.php.net.
  309. Web site: Developer Meeting Notes, Nov. 2005.
  310. Web site: Taint mode decision, November 2007. dead. https://web.archive.org/web/20090226124957/http://devzone.zend.com/article/2798-Zend-Weekly-Summaries-Issue-368#Heading1. 2009-02-26.
  311. Web site: Hardened-PHP Project. 2008-08-15. 2019-08-22. https://web.archive.org/web/20190224012812/http://www.hardened-php.net/. 2019-02-24. dead.
  312. Web site: Security: Using Register Globals. PHP Manual. 2013-09-22. PHP.net. 2013-09-27. https://web.archive.org/web/20130927161000/http://php.net/manual/en/security.globals.php. dead.
  313. Web site: Magic Quotes. PHP Manual. 2014-01-17. PHP.net. 2014-02-08. https://web.archive.org/web/20140208000607/http://www.php.net/manual/en/security.magicquotes.php. dead.
  314. Web site: 'engine' configuration directive. PHP: Runtime Configuration. 2014-02-13. PHP.net.
  315. Web site: PHP Security Exploit With GIF Images. 2007-06-22. 2013-09-22. https://web.archive.org/web/20130927162421/http://devzone.zend.com/1008/php-security-exploit-with-gif-images/. 2013-09-27. dead.
  316. Web site: PHP security exploit with GIF images. 2007-06-20 . 2013-09-22. PHP Classes blog.
  317. Web site: Passing Malicious PHP Through getimagesize. 2007-06-04. 2013-09-22. dead. https://web.archive.org/web/20130921222424/http://ha.ckers.org/blog/20070604/passing-malicious-php-through-getimagesize. 2013-09-21.
  318. Web site: 'enable_dl' configuration directive. PHP: Runtime Configuration. 2014-02-13. PHP.net.
  319. Web site: PHP function reference: dl. 2013-09-22. PHP.net.
  320. Web site: My host won't fix their Trojan. 2013-09-22. WebHosting Talk.
  321. Web site: Simple Machines Forum <= 2.0.3 Admin Password Reset. Raz0r. 25 January 2013.
  322. Web site: TYPO3-SA-2010-020, TYPO3-SA-2010-022 EXPLAINED. Nibble Security.
  323. Web site: Криптостойкость и небезопасное сравнение . ahack.ru . ru . unfit . https://web.archive.org/web/20170704214011/https://ahack.ru/articles/cryptographic-security-and-php-applications.htm . 4 July 2017 .
  324. Web site: Most common attacks on web applications . IPSec.pl . 2013 . 2015-04-15 . Pawel . Krawczyk . https://web.archive.org/web/20150415150236/https://ipsec.pl/web-application-security/most-common-attacks-web-applications.html . 2015-04-15 . dead .
  325. Web site: So what are the "most critical" application flaws? On new OWASP Top 10 . IPSec.pl . 2013 . 2015-04-15 . Pawel . Krawczyk .
  326. Web site: PHP: Random_int - Manual .
  327. Web site: PHP: Rand - Manual .
  328. Web site: PHP: Mt_rand - Manual .
  329. Web site: I Forgot Your Password: Randomness Attacks Against PHP Applications. usenix.org. USENIX. George. Argyros. Aggelos. Kiayias. 19 April 2024.
  330. Web site: Usage Statistics and Market Share of PHP for Websites, July 2024. w3techs.com. 2024-07-23.
  331. Web site: PHP Support for PHP 7.2 - 8.0 PHP LTS Zend by Perforce. 2024-05-23.