3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "\x2F\xC0\xAE\x2E\x2F"; $converted = mb_convert_encoding($str, 'UTF-8', 'UTF-8'); var_dump(bin2hex($str), $converted, bin2hex($converted));
Output for 5.4.0 - 7.1.0
string(10) "2fc0ae2e2f" string(5) "/??./" string(10) "2f3f3f2e2f"
Output for 4.3.0 - 5.3.29
string(10) "2fc0ae2e2f" string(3) "/./" string(6) "2f2e2f"