3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo htmlspecialchars('iets', ENT_HTML5, 'UTF-8');
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
iets
Output for 4.3.0 - 5.3.29
Notice: Use of undefined constant ENT_HTML5 - assumed 'ENT_HTML5' in /in/ArFaB on line 3 Warning: htmlspecialchars() expects parameter 2 to be long, string given in /in/ArFaB on line 3