3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "\xD6wn"; $output = mb_convert_encoding($input, 'UTF-8', 'ISO-8859-1'); var_dump(bin2hex($input), bin2hex($output));

preferences:
33.84 ms | 406 KiB | 5 Q