php8.5
PHP 8.5 is here

The pragmatic language the web runs on.

Fast, flexible and grounded. After 30 years PHP has never been more modern, typed, and pleasant to write.

Supported releases

Stay current, stay secure

All downloads
8.5.10Current

Released 27 Aug 2026.

Changelog · Download

8.4.25Active

Released 27 Aug 2026.

Changelog · Download

8.3.33Security

Released 30 Jul 2026.

Changelog · Download

8.2.33Security

Released 30 Jul 2026.

Changelog · Download

Modern by default

Typed, expressive, and readable out of the box.

Readonly properties, named arguments, enums, and property hooks. The PHP you write today looks nothing like 2004 — and runs dramatically faster.

Money.php
<?php

final class Money
{
    public function __construct(
        public readonly int $amount,
        public readonly string $currency = 'USD',
    ) {}

    // property hook — computed, read-only
    public string $display {
        get => number_format($this->amount / 100, 2)
              . " {$this->currency}";
    }
}

$price = new Money(amount: 4_999);
echo $price->display;   // 49.99 USD

Built to be found

Documentation you can actually navigate.

The manual is PHP's superpower. We rebuilt search and organization around the way developers really look things up.

Instant search

Type part of a function, class, or concept and jump straight there. Press / anywhere to focus search.

Reference, organized

11,000+ pages grouped by extension, with version availability and parameters surfaced before you scroll.

Real, copyable examples

Every reference page ships runnable snippets you can copy in one click — typed, current, and idiomatic.

The PHP Foundation

PHP is built in the open, funded by people who depend on it.

The Foundation employs core developers to keep the language healthy for the next decade. Join the companies and individuals supporting the work.