PHP: Hypertext Preprocessor

update page now
  • Downloads
  • Documentation
  • Get Involved
  • Help
  • PHP 8.5
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 php

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.5 Download
  • 8.5.4 · Changelog · Upgrading
  • 8.4.19 · Changelog · Upgrading
  • 8.3.30 · Changelog · Upgrading
  • 8.2.30 · Changelog · Upgrading

The PHP development team announces the immediate availability of PHP 8.5.4. This is a bug fix release.

All PHP 8.5 users are encouraged to upgrade to this version.

For source downloads of PHP 8.5.4 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.4.19. 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.19 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.5.3. This is a bug fix release.

All PHP 8.5 users are encouraged to upgrade to this version.

For source downloads of PHP 8.5.3 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.4.18. 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.18 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.5.2. This is a bug fix release.

All PHP 8.5 users are encouraged to upgrade to this version.

For source downloads of PHP 8.5.2 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.3.30. 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.30 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.4.17. 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.17 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.1.34. This is a security release.

All PHP 8.1 users are encouraged to upgrade to this version.

For source downloads of PHP 8.1.34 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.4.16. This is a security release.

All PHP 8.4 users are encouraged to upgrade to this version.

For source downloads of PHP 8.4.16 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.2.30. This is a security release.

All PHP 8.2 users are encouraged to upgrade to this version.

For source downloads of PHP 8.2.30 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.3.29. This is a security release.

All PHP 8.3 users are encouraged to upgrade to this version.

For source downloads of PHP 8.3.29 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.5.1. This is a security release.

All PHP 8.5 users are encouraged to upgrade to this version.

For source downloads of PHP 8.5.1 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.5.0. This release marks the latest minor release of the PHP language.

PHP 8.5 comes with numerous improvements and new features such as:

  • New "URI" extension
  • New pipe operator (|>)
  • Clone With
  • New #[\NoDiscard] attribute
  • Support for closures, casts, and first class callables in constant expressions
  • And much much more...

For source downloads of PHP 8.5.0 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The migration guide is available in the PHP Manual. Please consult it for the detailed list of new features and backward incompatible changes.

Kudos to all the contributors and supporters!

The PHP development team announces the immediate availability of PHP 8.4.15. 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.15 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP development team announces the immediate availability of PHP 8.3.28. 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.28 please visit our downloads page, Windows source and binaries can also be found there. The list of changes is recorded in the ChangeLog.

The PHP team is pleased to announce the fifth release candidate of PHP 8.5.0, RC 5. 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 RC5, 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 a 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 the GA release of PHP 8.5.0, planned for 20 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.

The PHP team is pleased to announce the final planned release candidate of PHP 8.5.0, RC 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 RC4, 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 a 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 the GA release of PHP 8.5.0, planned for 20 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.

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.

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.

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.

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.

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.

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.

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.

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.

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
  • Laravel Live Denmark 2026
  • PHP Velho Oeste 2026
  • International PHP Conference Berlin 2026
  • Laravel Live Japan

User Group Events

Special Thanks

Social media To Top ↑ and ↓ to navigate • Enter to select • Esc to close • / to open Press Enter without selection to search using Google

Từ khóa » Ht Et Net