3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mb_substitute_character(0xfffd); var_dump(mb_convert_encoding("\xc2",'UTF-8','UTF-8'));
Output for 5.4.20 - 5.4.45, 5.5.2 - 7.1.0
string(3) "�"
Output for 4.3.0 - 5.4.19, 5.5.0 - 5.5.1
string(0) ""