Overview
3v4l.org (the name reads as "eval") is an online PHP sandbox that runs a snippet of code on hundreds of PHP versions at the same time and shows the output of each. It is the standard way for PHP developers to demonstrate that something behaves differently between versions.
You type or paste a script and submit it. The results group together versions that produced the same output, so a change in behaviour stands out straight away. Beyond plain output the site can show the opcodes PHP generated, through the VLD extension, and a performance overview with timing and memory for each version, along with links to the relevant manual pages.
Scripts run in an isolated virtual machine with no network access and a minimal filesystem, capped at a few seconds of execution time and 64 MB of memory. Every script gets a shareable address, and the site has pages listing recent and searchable scripts, so treat anything you submit as public. It is built and maintained by Sjon Hortensius, with the site's code on GitHub, and is supported by donations.
Categories
Features
- Runs one script on more than 500 PHP versions at once
- Groups versions that give identical output
- Shows generated opcodes through VLD
- Performance overview with time and memory per version
- Shareable link for every script
- Links to the PHP manual for functions used
- JSON responses available by sending an Accept header
Privacy
See the official privacy policy. Scripts are stored under shareable links and the site has recent and search pages for them, so do not paste secrets or private code.
Pros & Cons
Pros
- Free, with no account needed to run code
- Makes version-to-version behaviour changes obvious
- Covers very old and very new PHP releases side by side
- No advertising scripts found on the page
Cons
- Submitted scripts are stored and can be found by others
- No network access and a short time limit, so only small snippets work
- No official API, only JSON versions of the normal pages
- You cannot add Composer packages or your own extensions
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
An online code editor and playground for HTML, CSS, and JavaScript.
Freemium No Signup Web -
A social code playground for front-end code.
Freemium Web -
A collaborative JavaScript, HTML, and CSS playground.
Open Source Web -
Code Playgrounds · PlayCode
A fast online JavaScript playground with live preview.
Freemium No Signup Web