3v4l.org

run code in 300+ PHP versions simultaneously
<?php $proj_id = 42; ?> when you are inside html: <a href="index.php?proj_id=<?=$proj_id; ?>">back to project</a> when you're in php: <?php echo "<a href='index.php?proj_id={$proj_id}'>back to project</a>"; echo "\n\nOr:\n\n"; echo "<a href='index.php?proj_id=${proj_id}'>back to project</a>"; echo "\n\nOr:\n\n"; echo "<a href='index.php?proj_id=$proj_id'>back to project</a>"; ?> If it was Twig (but it isn't): <a href="index.php?proj_id={{proj_id}}">back to project</a>
Output for git.master_jit, git.master, rfc.property-hooks
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/q3vUR on line 17 when you are inside html: <a href="index.php?proj_id=42">back to project</a> when you're in php: <a href='index.php?proj_id=42'>back to project</a> Or: <a href='index.php?proj_id=42'>back to project</a> Or: <a href='index.php?proj_id=42'>back to project</a> If it was Twig (but it isn't): <a href="index.php?proj_id={{proj_id}}">back to project</a>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
20.1 ms | 402 KiB | 8 Q