3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "hello"; $b = "world"; //echo "{$a $b}\n"; // This causes a Parse error: syntax error, unexpected '$b' (T_VARIABLE), expecting } echo "{{$a} $b}\n"; // but you can escape the sequence -- why is the escape sequence character still a part of the output?
Output for git.master, git.master_jit, rfc.property-hooks
{hello world}

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:
21.36 ms | 401 KiB | 8 Q