PHP Language Specification

The PHP Language Specification intends to provide a complete and concise definition of the syntax and semantics of the PHP programming language.


The PHP Language Specification was initially written in July 2014 by Facebook, Inc.

Facebook has dedicated all copyright to this specification to the public domain worldwide under the CC0 Public Domain Dedication located at This specification is distributed without any warranty.

The PHP Language Specification is maintained at is Copyright 2019, PHP Community Foundation, Inc..

The source code files used to generate are licensed under the Apache License, Version 2.0. Original content on is licensed under the Creative Commons Attribution 4.0 International License.

The source repository for is located at

This documentation was generated on 5 December 2023 at 16:00 UTC from php/php-langspec@4c19272 and phpcommunity/