Command Palette

Search for a command to run...

Page Inspect

https://www.php.net/
Internal Links
153
External Links
37
Images
4
Headings
25

Page Content

Title:PHP
Description:PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.
HTML Size:52 KB
Markdown Size:16 KB
Fetched At:September 16, 2025

Page Structure

h2PHP 8.5.0 Beta 3 available for testing
h2PHP 8.5.0 Beta 2 available for testing
h2PHP 8.3.25 Released!
h2PHP 8.4.12 Released!
h2PHP 8.5.0 Beta 1 available for testing
h2PHP 8.5.0 Alpha 4 available for testing
h2PHP 8.4.11 Released!
h2PHP 8.3.24 Released!
h2PHP 8.5.0 Alpha 2 available for testing
h2PHP 8.5.0 Alpha 1 available for testing
h2PHP 8.3.23 Released!
h2PHP 8.1.33 Released!
h2PHP 8.2.29 Released!
h2PHP 8.4.10 Released!
h2PHP 8.3.22 Released!
h2PHP 8.4.8 Released!
h2PHP 8.3.21 Released!
h2PHP 8.4.7 Released!
h2PHP 8.4.6 Released!
h2PHP 8.3.20 Released!
h2PHP Core Undergoes Security Audit – Results Now Available
h2PHP 8.2.28 Released!
h2PHP 8.1.32 Released!
h2PHP 8.4.5 Released!
h2PHP 8.3.19 Released!

Markdown Content

PHP

- 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.12 · Changelog · Upgrading
- 8.3.25 · Changelog · Upgrading
- 8.2.29 · Changelog · Upgrading
- 8.1.33 · Changelog · Upgrading

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.

10 Apr 2025## PHP 8.4.6 Released!

The PHP development team announces the immediate availability of PHP 8.4.6. 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.6 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.

10 Apr 2025## PHP 8.3.20 Released!

The PHP development team announces the immediate availability of PHP 8.3.20. 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.20 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.

10 Apr 2025## PHP Core Undergoes Security Audit – Results Now Available

A focused security audit of the PHP source code (php/php-src) was recently completed, commissioned by the Sovereign Tech Agency, organized by The PHP Foundation in partnership with OSTIF, and performed by Quarkslab. The audit targeted the most critical parts of the codebase, leading to 27 findings, 17 with security implications, including four CVEs.

All issues have been addressed by the PHP development team. Users are encouraged to upgrade to the latest PHP versions to benefit from these security improvements.

Read the full audit report. More details in the PHP Foundation blog post.

If your organization is interested in sponsoring further audits, please contact The PHP Foundation team: contact@thephp.foundation.

13 Mar 2025## PHP 8.2.28 Released!

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

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

For source downloads of PHP 8.2.28 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.

13 Mar 2025## PHP 8.1.32 Released!

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

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

For source downloads of PHP 8.1.32 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.

13 Mar 2025## PHP 8.4.5 Released!

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

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

For source downloads of PHP 8.4.5 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.

13 Mar 2025## PHP 8.3.19 Released!

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

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

For source downloads of PHP 8.3.19 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

- PHPKonf 2025 Baku
- Forum PHP 2025
- PHPeste 2025 - Parnaiba-PI
- Longhorn PHP 2025

Conferences calling for papers

- Dutch PHP Conference 2026
- PHP Tek 2026
- ConFoo Montreal 2026

User Group Events

Special Thanks

Social media

- @official\_php
- @php@fosstodon.org
- @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