Every PHP version, online — 7.2 to 8.5

php.onl ships nine separate WebAssembly builds of the PHP interpreter, from 7.2 through the latest 8.5. Pick any version and run real PHP in your browser — or select several at once and compare their output side by side in a single click. Nothing installs, nothing uploads, and it all keeps working offline once loaded.

VersionReleaseHeadline feature
PHP 8.5 Latest8.5.6Pipe operator, clone with
PHP 8.4 8.4.20Property hooks
PHP 8.3 8.3.30Typed class constants
PHP 8.2 8.2.30Readonly classes
PHP 8.1 End of life8.1.34Enums, fibers
PHP 8.0 End of life8.0.30JIT, match()
PHP 7.4 End of life7.4.33Arrow functions
PHP 7.3 End of life7.3.33Flexible heredoc
PHP 7.2 End of life7.2.34Object type hint

Why test across versions?

Upgrading PHP? Run the same snippet on your current version and the target version to catch behaviour changes, deprecations, and removed features before they reach production. Because each runtime is independent, php.onl shows you exactly how a piece of code behaves on each release — no Docker images, no local installs, no waiting on a server.

Run it now

Open the playground, choose your versions in the selector, and hit Run. Multi-version runs execute in parallel and the results panel highlights where outputs differ.