3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test() { // The closing marker (and body) are indented. // PHP >= 7.3: parses; the leading indentation is stripped based on the // closing marker's indentation, so $value === "Indented heredoc body.". // PHP < 7.3: fatal parse error — the closing marker MUST be at column 0, // so the indented "EOT" is not recognised as the terminator. $value = <<<EOT Indented heredoc body. EOT; return $value; } echo test(), "\n";
Output for rfc.property-hooks, git.master, git.master_jit
Indented heredoc body.

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:
35.86 ms | 2728 KiB | 4 Q