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.
| Version | Release | Headline feature |
|---|---|---|
| PHP 8.5 Latest | 8.5.6 | Pipe operator, clone with |
| PHP 8.4 | 8.4.20 | Property hooks |
| PHP 8.3 | 8.3.30 | Typed class constants |
| PHP 8.2 | 8.2.30 | Readonly classes |
| PHP 8.1 End of life | 8.1.34 | Enums, fibers |
| PHP 8.0 End of life | 8.0.30 | JIT, match() |
| PHP 7.4 End of life | 7.4.33 | Arrow functions |
| PHP 7.3 End of life | 7.3.33 | Flexible heredoc |
| PHP 7.2 End of life | 7.2.34 | Object 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.