3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $variable = 1; print <<<END This uses the "here document" syntax to output multiple lines with $['variable'] interpolation. Note that the here document terminator must appear on a line with just a semicolon no extra whitespace! END; ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
This uses the "here document" syntax to output multiple lines with $['variable'] interpolation. Note that the here document terminator must appear on a line with just a semicolon no extra whitespace!