3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo htmlentities("&foo;&amp&#x00&amp;",0,"UTF-8",false);
Output for 5.4.0 - 7.1.0
&amp;foo;&amp;amp&amp;#x00&amp;
Output for 5.2.3 - 5.3.29
&foo;&amp;amp&amp;#x00&amp;
Output for 4.3.0 - 5.2.2
Warning: htmlentities() expects at most 3 parameters, 4 given in /in/IqAIa on line 2