3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(utf8_decode("héh")); var_dump(utf8_decode("h\xE9h"));
Output for 5.2.15 - 5.2.17, 5.3.4 - 7.1.0
string(3) "h�h" string(3) "h?h"
Output for 4.3.0 - 5.2.14, 5.3.0 - 5.3.3
string(3) "h�h" string(2) "h?"