Execute PHP code on 3v4l.org to test runtime behavior across multiple PHP versions. Use when you need to verify what PHP actually does with a piece of code.
Execute PHP code on 3v4l.org to test actual runtime behavior across multiple PHP versions. This is critical — do NOT reason about what PHP would do, actually test it.
The code to run: $ARGUMENTS
Fetch the 3v4l.org homepage and examine the HTML form to understand how to submit code:
curl -s https://3v4l.org/ | head -200
Look for:
Take the PHP code and make it executable:
var_dump() or echo statements to show return values and typesSubmit the prepared code to 3v4l.org using the form submission mechanism you discovered in Step 1.
After submission, retrieve the results via the REST API:
curl -s -H 'Accept: application/json' 'https://3v4l.org/<short-id>'
Parse the JSON to see actual PHP output across different PHP versions.
Show: