3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function win2ascii($str) { $str = StrTr($str, "\xE1\xE8\xEF\xEC\xE9\xED\xF2", "\x61\x63\x64\x65\x65\x69\x6E"); $str = StrTr($str, "\xF3\xF8\x9A\x9D\xF9\xFA\xFD\x9E\xF4\xBC\xBE", "\x6F\x72\x73\x74\x75\x75\x79\x7A\x6F\x4C\x6C"); $str = StrTr($str, "\xC1\xC8\xCF\xCC\xC9\xCD\xC2\xD3\xD8", "\x41\x43\x44\x45\x45\x49\x4E\x4F\x52"); $str = StrTr($str, "\x8A\x8D\xDA\xDD\x8E\xD2\xD9\xEF\xCF", "\x53\x54\x55\x59\x5A\x4E\x55\x64\x44"); return $str; } echo win2ascii('ółśćńżźęą');
Output for 4.3.0 - 7.1.0
ółśćń�Lźęą