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 k6JGE
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
string(13) "some+AKA text" string(20) "some� text"
Output for hhvm-3.10.0

Process exited with code 153.