3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo "With single quotes: "; $var = '\n'; // The litteral string echo $var; echo "Text after outputting the variable."; echo "\n\n\n"; // Just to separate the two strings in the demo echo "With double quotes: "; $var = "\n"; // Newline echo $var; echo "Text after outputting the variable.";
Output for git.master, git.master_jit, rfc.property-hooks
With single quotes: \nText after outputting the variable. With double quotes: Text after outputting the variable.

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:
51.18 ms | 1998 KiB | 4 Q