3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('mbstring.substitute_character','none'); var_dump(mb_convert_encoding("AAA\xf0\x28\x8c\x28BBB",'UTF-8','UTF-8'));
based on 7mKW9
Output for 4.3.0 - 7.2.0
string(8) "AAA((BBB"