3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "aƄ"; var_dump(bin2hex($string)); var_dump(md5($string)); var_dump(bin2hex(mb_convert_encoding($string, "UTF-8"))); var_dump(md5(mb_convert_encoding($string, "UTF-8")));
Output for 5.6.8 - 7.1.0
string(6) "61c3a5" string(32) "499a9a2dfef9d4435294ffec074fffee" string(6) "61c3a5" string(32) "499a9a2dfef9d4435294ffec074fffee"
Output for 4.3.0 - 5.5.35
string(6) "61c3a5" string(32) "499a9a2dfef9d4435294ffec074fffee" string(10) "61c383c2a5" string(32) "1d6cdcf1d076f8257b9aaa5166db3a07"