PHP
https://php.net

Downloads
Documentation
Get Involved
Help
Search docs
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
A
popular general-purpose scripting language
that is especially suited to web development.
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
What's new in 8.4
Download
8.4.14
·
Changelog
·
Upgrading
8.3.27
·
Changelog
·
Upgrading
8.2.29
·
Changelog
·
Upgrading
8.1.33
·
Changelog
·
Upgrading
23 Oct 2025
PHP 8.3.27 Released!
The PHP development team announces the immediate availability of PHP 8.3.27. This is a bug fix release.
All PHP 8.3 users are encouraged to upgrade to this version.
For source downloads of PHP 8.3.27 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
23 Oct 2025
PHP 8.4.14 Released!
The PHP development team announces the immediate availability of PHP 8.4.14. This is a bug fix release.
All PHP 8.4 users are encouraged to upgrade to this version.
For source downloads of PHP 8.4.14 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
23 Oct 2025
PHP 8.5.0 RC 3 available for testing
The PHP team is pleased to announce the third release candidate of PHP 8.5.0, RC 3.
      This continues the PHP 8.5 release cycle, the rough outline of which is specified in the
PHP Wiki
.
For source downloads of PHP 8.5.0 RC3, please visit the
download page
.
Please carefully test this version and report any issues found
on GitHub
.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the
NEWS
file, or the
UPGRADING
file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be RC4, planned for 6 Nov 2025.
The signatures for the release can be found in the
manifest
or on the
Release Candidates page
.
Thank you for helping us make PHP better.
09 Oct 2025
PHP 8.5.0 RC 2 available for testing
The PHP team is pleased to announce the second release candidate of PHP 8.5.0, RC 2.
         This continues the PHP 8.5 release cycle, the rough outline of which is specified in the
PHP Wiki
.
For source downloads of PHP 8.5.0 RC2, please visit the
download page
.
Please carefully test this version and report any issues found
on GitHub
.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the
NEWS
file, or the
UPGRADING
file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be RC3, planned for 23 Oct 2025.
The signatures for the release can be found in the
manifest
or on the
Release Candidates page
.
Thank you for helping us make PHP better.
25 Sep 2025
PHP 8.5.0 RC 1 available for testing
The PHP team is pleased to announce the first release candidate of PHP 8.5.0, RC 1.
     	This continues the PHP 8.5 release cycle, the rough outline of which is specified in the
PHP Wiki
.
For source downloads of PHP 8.5.0 RC1, please visit the
download page
.
Please carefully test this version and report any issues found
on GitHub
.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the
NEWS
file, or the
UPGRADING
file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be RC2, planned for 9 Oct 2025.
The signatures for the release can be found in the
manifest
or on the
Release Candidates page
.
Thank you for helping us make PHP better.
25 Sep 2025
PHP 8.3.26 Released!
The PHP development team announces the immediate availability of PHP 8.3.26. This is a bug fix release.
All PHP 8.3 users are encouraged to upgrade to this version.
For source downloads of PHP 8.3.26 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
25 Sep 2025
PHP 8.4.13 Released!
The PHP development team announces the immediate availability of PHP 8.4.13. This is a bug fix release.
All PHP 8.4 users are encouraged to upgrade to this version.
For source downloads of PHP 8.4.13 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
11 Sep 2025
PHP 8.5.0 Beta 3 available for testing
The PHP team is pleased to announce the third beta release of PHP 8.5.0, Beta 3.
         This continues the PHP 8.5 release cycle, the rough outline of which is specified in the
PHP Wiki
.
For source downloads of PHP 8.5.0 Beta 3, please visit the
download page
.
Please carefully test this version and report any issues found
on GitHub
.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the
NEWS
file, or the
UPGRADING
file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be RC1, planned for 25 Sep 2025.
The signatures for the release can be found in the
manifest
or on the
Release Candidates page
.
Thank you for helping us make PHP better.
28 Aug 2025
PHP 8.5.0 Beta 2 available for testing
The PHP team is pleased to announce the second beta release of PHP 8.5.0, Beta 2.
       This continues the PHP 8.5 release cycle, the rough outline of which is specified in the
PHP Wiki
.
For source downloads of PHP 8.5.0 Beta 2 please visit the
download page
.
Please carefully test this version and report any issues found
on GitHub
.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the
NEWS
file, or the
UPGRADING
file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be Beta 3, planned for 11 Sep 2025.
The signatures for the release can be found in the
manifest
or on the
Release Candidates page
.
Thank you for helping us make PHP better.
28 Aug 2025
PHP 8.3.25 Released!
The PHP development team announces the immediate availability of PHP 8.3.25. This is a bug fix release.
All PHP 8.3 users are encouraged to upgrade to this version.
For source downloads of PHP 8.3.25 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
28 Aug 2025
PHP 8.4.12 Released!
The PHP development team announces the immediate availability of PHP 8.4.12. This is a bug fix release.
All PHP 8.4 users are encouraged to upgrade to this version.
For source downloads of PHP 8.4.12 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
14 Aug 2025
PHP 8.5.0 Beta 1 available for testing
The PHP team is pleased to announce the first beta release of PHP 8.5.0, Beta 1. This continues the PHP 8.5 release cycle, the rough outline of which is specified in the
PHP Wiki
.
For source downloads of PHP 8.5.0 Beta 1 please visit the
download page
.
Please carefully test this version and report any issues found
on GitHub
.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the
NEWS
file, or the
UPGRADING
file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be Beta 2, planned for 28 Aug 2025.
The signatures for the release can be found in the
manifest
or on the
Release Candidates page
.
Thank you for helping us make PHP better.
01 Aug 2025
PHP 8.5.0 Alpha 4 available for testing
The PHP team is pleased to announce the third testing release of PHP 8.5.0, Alpha 4.
        This continues the PHP 8.5 release cycle, the rough outline of which is specified in the
PHP Wiki
.
For source downloads of PHP 8.5.0 Alpha 4 please visit the
download page
.
Please carefully test this version and report any issues found
on GitHub
.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the
NEWS
file, or the
UPGRADING
file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be Beta 1, planned for 14 Aug 2025.
The signatures for the release can be found in the
manifest
or on the
Release Candidates page
.
Thank you for helping us make PHP better.
31 Jul 2025
PHP 8.4.11 Released!
The PHP development team announces the immediate availability of PHP 8.4.11. This is a bug fix release.
All PHP 8.4 users are encouraged to upgrade to this version.
For source downloads of PHP 8.4.11 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
31 Jul 2025
PHP 8.3.24 Released!
The PHP development team announces the immediate availability of PHP 8.3.24. This is a bug fix release.
All PHP 8.3 users are encouraged to upgrade to this version.
For source downloads of PHP 8.3.24 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
17 Jul 2025
PHP 8.5.0 Alpha 2 available for testing
The PHP team is pleased to announce the second testing release of PHP 8.5.0, Alpha 2. This continues the PHP 8.5 release cycle, the rough outline of which is specified in the
PHP Wiki
.
For source downloads of PHP 8.5.0 Alpha 2 please visit the
download page
.
Please carefully test this version and report any issues found
on GitHub
.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the
NEWS
file, or the
UPGRADING
file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be Alpha 3, planned for 31 Jul 2025.
The signatures for the release can be found in the
manifest
or on the
Release Candidates page
.
Thank you for helping us make PHP better.
03 Jul 2025
PHP 8.5.0 Alpha 1 available for testing
The PHP team is pleased to announce the first testing release of PHP 8.5.0, Alpha 1. This starts the PHP 8.5 release cycle, the rough outline of which is specified in the
PHP Wiki
.
For source downloads of PHP 8.5.0 Alpha 1 please visit the
download page
.
Please carefully test this version and report any issues found
on GitHub
.
Please DO NOT use this version in production, it is an early test version.
For more information on the new features and other changes, you can read the
NEWS
file, or the
UPGRADING
file for a complete list of upgrading notes. These files can also be found in the release archive.
The next release will be Alpha 2, planned for 17 Jul 2025.
The signatures for the release can be found in the
manifest
or on the
Release Candidates page
.
Thank you for helping us make PHP better.
03 Jul 2025
PHP 8.3.23 Released!
The PHP development team announces the immediate availability of PHP 8.3.23. This is a security release.
All PHP 8.3 users are encouraged to upgrade to this version.
For source downloads of PHP 8.3.23 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
03 Jul 2025
PHP 8.1.33 Released!
The PHP development team announces the immediate availability of PHP 8.1.33. This is a security release.
All PHP 8.1 users are encouraged to upgrade to this version.
For source downloads of PHP 8.1.33 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
03 Jul 2025
PHP 8.2.29 Released!
The PHP development team announces the immediate availability of PHP 8.2.29. This is a security release.
All PHP 8.2 users are encouraged to upgrade to this version.
For source downloads of PHP 8.2.29 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
03 Jul 2025
PHP 8.4.10 Released!
The PHP development team announces the immediate availability of PHP 8.4.10. This is a security release.
Version 8.4.9 was skipped because it was tagged without including security patches.
All PHP 8.4 users are encouraged to upgrade to this version.
For source downloads of PHP 8.4.10 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
05 Jun 2025
PHP 8.3.22 Released!
The PHP development team announces the immediate availability of PHP 8.3.22. This is a bug fix release.
All PHP 8.3 users are encouraged to upgrade to this version.
For source downloads of PHP 8.3.22 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
05 Jun 2025
PHP 8.4.8 Released!
The PHP development team announces the immediate availability of PHP 8.4.8. This is a bug fix release.
All PHP 8.4 users are encouraged to upgrade to this version.
For source downloads of PHP 8.4.8 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
08 May 2025
PHP 8.3.21 Released!
The PHP development team announces the immediate availability of PHP 8.3.21. This is a bug fix release.
All PHP 8.3 users are encouraged to upgrade to this version.
For source downloads of PHP 8.3.21 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
08 May 2025
PHP 8.4.7 Released!
The PHP development team announces the immediate availability of PHP 8.4.7. This is a bug fix release.
All PHP 8.4 users are encouraged to upgrade to this version.
For source downloads of PHP 8.4.7 please visit our
downloads page
,
Windows source and binaries can be found on
windows.php.net/download/
.
The list of changes is recorded in the
ChangeLog
.
Older News Entries
The PHP Foundation
The PHP Foundation is a collective of people and organizations, united in the mission to ensure the long-term prosperity of the PHP language.
Donate
Upcoming conferences
PHP Conference Kagawa 2025
PHP Conference Fukuoka 2025
PHP Conference Brazil 2025
International PHP Conference Munich 2025
Conferences calling for papers
Dutch PHP Conference 2026
PHP Tek 2026
User Group Events
Special Thanks
Social media
@official_php
@[email protected]
@phpnet
Copyright © 2001-2025 The PHP Group
My PHP.net
Contact
Other PHP.net sites
Privacy policy
View Source
↑
and
↓
to navigate •
Enter
to select •
Esc
to close
Press
Enter
without
        selection to search using Google