Reference

Release notes

Published releases, upgrade guidance, and links to the complete release history.

++PHP ships on a quarterly train, with shared documentation for each train. The summaries below record published releases. For complete notes, upgrade instructions, and verified assets, see the official release history. The latest Stable release is always available there.

Use the unversioned command in Installation for normal use. Exact version constraints belong to the release you are deliberately selecting.

2026.3.2

Published on November 8, 2026 as a Stable release.

Browser editors can reuse verified PHP platform signatures and prepare the compiler while you pause after editing. Supported browser projects can complete checks without the supplemental PHPStan pass; other projects still use it. Every successful browser build passes PHP lint before its output is published. Native Check and Build retain supplemental PHPStan analysis.

Browser builds also bound retained compiler workspace data and reparse installed signature source if a cached syntax entry fails its integrity check.

See the complete release notes and assets. After upgrading, rebuild generated output. Browser integrations must ship matching compiler and editor assets together.

2026.3.1

Published on November 6, 2026 as the first Stable release.

This release brings typed and readonly locals, typed loop bindings, composite types, erased generics, typed lists and maps, checked errors, and value-producing when expressions to mixed PHP and ++PHP projects. Checks use Composer dependency declarations without running application code. Complete builds publish one PHP tree with source maps and a manifest, preserving the previous output when a build fails.

Since the second candidate:

  • Console diagnostics lead with the original source location and specific cause.
  • Native compiler commands use a 512 MiB allowance by default. PPPHP_COMPILER_MEMORY_LIMIT_MEGABYTES selects an explicit limit without changing php.ini.
  • Dependency discovery uses less memory by deferring unused token streams and releasing implementation bodies after discovery.
  • when preserves evaluation order, reference bindings, and control flow through nested loops, switches, and finally blocks.
  • Browser integrations can reuse verified build results for unchanged inputs.

See the complete release notes and upgrade guidance. Replace an exact prerelease requirement with the normal installation command, then rebuild the generated application. Immutable Records and framework integrations remain planned work.

2026.3.1-rc-2

Published on September 8, 2026 as a release candidate.

This candidate improved diagnostics, unsaved editor feedback, nullable-value narrowing, Composer PHP target selection, and valid when results in returns, arguments, and arrays. It introduced the atatusoft/ppphp package name; the command, PHP namespace, and source repository stayed the same.

The complete candidate notes retain its exact installation command and package migration guidance. For normal use, install Stable through Installation.

2026.3.1-rc-1

Published on September 3, 2026 as a release candidate. The package, tag, release page, schema, manifest, notes, third-party notices, and checksums were published together.

What it brings to PHP

++PHP gives PHP developers a stronger source contract while keeping PHP as the runtime. A project may contain ordinary .php files alongside .ppphp files. The compiler checks both, compiles .ppphp into ordinary PHP, copies selected .php files byte-for-byte, and produces one application tree in build/ppphp.

The candidate includes:

  • Explicit typed local variables and readonly local storage
  • Typed loop declarations that carry list and map element types into the loop body
  • Strict checks for parameters, properties, returns, calls, members, assignments, and nullability
  • Union, intersection, and disjunctive normal form type contracts
  • Erased generics for reusable classes, interfaces, traits, functions, and methods
  • array<T> lists and array<K, V> maps with ordinary PHP array behavior at runtime
  • Checked errors declared with throws, requiring callers to catch or declare recoverable failures
  • when expressions whose branches may perform useful work before returning a result
  • Focused and complete project checks with stable diagnostic codes and machine-readable JSON
  • Atomic mixed builds, source maps, deterministic manifests, and maintained Composer runtime mappings

Generic and error relationships become compatible PHPDoc in generated output. Existing packages, native PHP types, PHPDoc, Composer autoloading, and configured stubs all contribute useful declarations during checking.

Requirements and limits

The compiler requires PHP 8.4 or newer and Composer 2. This candidate's original setup guidance called for at least 512 MiB of memory for compiler commands; that historical guidance is not a universal minimum for ++PHP. Generated applications target PHP 8.4.

Some deeper checks inside ordinary PHP function bodies still use the bundled PHPStan pass. This candidate does not include a formatter or a standalone language server. Behavior may change before the first Stable release as real projects expose bugs and rough edges.

Installation

Composer does not select prereleases by default, so require the exact version:

composer require --dev atatusoft-ltd/ppphp-src:2026.3.1-rc-1
vendor/bin/ppphp --version

See Installation for initialization, the configuration schema, Composer mapping, checking, building, and running the generated PHP.

Assets

The canonical tagged release provides these immutable locations:

  • Release: https://github.com/atatusoft-ltd/ppphp-src/releases/tag/2026.3.1-rc-1
  • Schema: https://github.com/atatusoft-ltd/ppphp-src/releases/download/2026.3.1-rc-1/ppphp.schema.json
  • Manifest: https://github.com/atatusoft-ltd/ppphp-src/releases/download/2026.3.1-rc-1/ppphp-release.json
  • Checksums: https://github.com/atatusoft-ltd/ppphp-src/releases/download/2026.3.1-rc-1/SHA256SUMS

GitHub's tagged release is the canonical source for those files; the website does not mirror them. See Verify downloads before relying on a downloaded asset.

Feedback and security

Report bugs through GitHub Issues with the compiler version, platform, a small reproduction, and the expected and observed behavior.

Do not put vulnerability details in a public issue. Follow the private security reporting process so a fix and disclosure can be coordinated safely.