3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo_bar() { $phrase = "hello world"; $string = ""; if (0 == 0) { $string .= <<<EOF <b>{$phrase}</b> EOF; if (0 == 0) { $string .= <<<EOF <i> of mine</i> EOF; } /* comment out to see the error $string .= <<<EOF <u> - the END</u> EOF; */ } return $string; } foo_bar();
Output for 4.3.0 - 7.2.0