3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function html_entities ($s) { return htmlentities ($s, ENT_COMPAT /* ENT_HTML401 */, "UTF-8"); } var_dump(html_entities("\x4a\x69\x67\x75\x65\x20\xe0\x20\x42\x61\x70\x74\x69\x73\x74\x65"));
Output for 5.2.5 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(0) ""
Output for 4.3.2 - 5.2.4
string(16) "Jigue � Baptiste"
Output for 4.3.0 - 4.3.1

Process exited with code 139.