3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $description = "bla"; $blogname = "Wobbling Willy"; if ($blogname == 'Wobbling Willy') { $html = <<<EOD <meta name="description" content="$description" /> <meta name="keywords" content=”keyword1, keyword2, keyword3” /> EOD; }
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Parse error: syntax error, unexpected end of file in /in/kbaGh on line 12
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Unterminated heredoc at end of file (Line: 9, Char: 54) syntax error, unexpected $end in /in/kbaGh:9 Stack trace: #0 {main}
Process exited with code 255.