3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $chars = explode(", ", "'¦, ¨, ´, ¸, À, Á, Â Ã, Ä, Ã…"); foreach ($chars as $char) { $x = mb_convert_encoding($char, 'Windows-1252', 'UTF-8'); var_dump($x); var_dump(utf8_encode($x)); } var_dump(utf8_decode('ß'));
based on N9jG9
Output for 4.3.0 - 7.2.0
string(3) "'¦" string(5) "'¦" string(2) "¨" string(4) "¨" string(2) "´" string(4) "´" string(2) "¸" string(4) "¸" string(2) "À" string(4) "À" string(2) "Á" string(4) "Á" string(5) " Ã" string(9) "Â Ã" string(2) "Ä" string(4) "Ä" string(2) "Å" string(4) "Å" string(1) "�"