3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo htmlentities(" abc<>^&etc'\"wee<>"); echo htmlspecialchars(" abc<>^&etc'\"wee<>");
Output for 4.3.0 - 7.1.0
abc&lt;&gt;^&amp;etc'&quot;wee&lt;&gt; abc&lt;&gt;^&amp;etc'&quot;wee&lt;&gt;