3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = "some\xc2\xa0 text `"; var_dump(mb_convert_encoding($test, 'UTF-7', 'UTF-8')); var_dump(mb_convert_encoding($test, 'UCS-2', 'UTF-8'));
based on 54ic3
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(19) "some+AKA text +AGA-" string(24) "some� text `"