3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "â€"; var_dump(htmlentities($string, ENT_QUOTES, "UTF-8")); var_dump(mb_convert_encoding($string, "HTML-ENTITIES", mb_detect_encoding($string)));
Output for 4.3.2 - 7.2.0
string(13) "&acirc;&euro;" string(13) "&acirc;&euro;"
Output for 4.3.0 - 4.3.1

Process exited with code 139.