3v4l.org

run code in 200+ 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 - 7.2.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.