3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? echo("<p>Search results for query: ", $_GET['query'] . ".</p>"); ?> <? echo("<p>Search results for query: ", htmlspecialchars($_GET['query']) . ".</p>"); ?> <?php if (isset($_GET['query'])) { echo '<p>Search results for query: ', htmlspecialchars($_GET['query'], ENT_QUOTES), '.</p>'; } ?>
based on H1YRu
Output for 5.4.34
Parse error: syntax error, unexpected ',' in /in/p6tBq on line 2
Process exited with code 255.
Output for 4.3.0 - 5.4.32
<? echo("<p>Search results for query: ", $_GET['query'] . ".</p>"); ?> <? echo("<p>Search results for query: ", htmlspecialchars($_GET['query']) . ".</p>"); ?>