3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $chars = array( // Decompositions for Latin-1 Supplement 'ª' => 'a', 'º' => 'o', 'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A', 'Å' => 'A', 'Æ' => 'AE','Ç' => 'C', 'È' => 'E', 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I', 'Ð' => 'D', 'Ñ' => 'N', 'Ò' => 'O', 'Ó' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ö' => 'O', 'Ù' => 'U', 'Ú' => 'U', 'Û' => 'U', 'Ü' => 'U', 'Ý' => 'Y', 'Þ' => 'TH','ß' => 's', 'à' => 'a', 'á' => 'a', 'â' => 'a', 'ã' => 'a', 'ä' => 'a', 'å' => 'a', 'æ' => 'ae','ç' => 'c', 'è' => 'e', 'é' => 'e', 'ê' => 'e', 'ë' => 'e', 'ì' => 'i', 'í' => 'i', 'î' => 'i', 'ï' => 'i', 'ð' => 'd', 'ñ' => 'n', 'ò' => 'o', 'ó' => 'o', 'ô' => 'o', 'õ' => 'o', 'ö' => 'o', 'ø' => 'o', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ü' => 'u', 'ý' => 'y', 'þ' => 'th', 'ÿ' => 'y', 'Ø' => 'O', // Decompositions for Latin Extended-A 'Ā' => 'A', 'ā' => 'a', 'Ă' => 'A', 'ă' => 'a', 'Ą' => 'A', 'ą' => 'a', 'Ć' => 'C', 'ć' => 'c', 'Ĉ' => 'C', 'ĉ' => 'c', 'Ċ' => 'C', 'ċ' => 'c', 'Č' => 'C', 'č' => 'c', 'Ď' => 'D', 'ď' => 'd', 'Đ' => 'D', 'đ' => 'd', 'Ē' => 'E', 'ē' => 'e', 'Ĕ' => 'E', 'ĕ' => 'e', 'Ė' => 'E', 'ė' => 'e', 'Ę' => 'E', 'ę' => 'e', 'Ě' => 'E', 'ě' => 'e', 'Ĝ' => 'G', 'ĝ' => 'g', 'Ğ' => 'G', 'ğ' => 'g', 'Ġ' => 'G', 'ġ' => 'g', 'Ģ' => 'G', 'ģ' => 'g', 'Ĥ' => 'H', 'ĥ' => 'h', 'Ħ' => 'H', 'ħ' => 'h', 'Ĩ' => 'I', 'ĩ' => 'i', 'Ī' => 'I', 'ī' => 'i', 'Ĭ' => 'I', 'ĭ' => 'i', 'Į' => 'I', 'į' => 'i', 'İ' => 'I', 'ı' => 'i', 'IJ' => 'IJ','ij' => 'ij', 'Ĵ' => 'J', 'ĵ' => 'j', 'Ķ' => 'K', 'ķ' => 'k', 'ĸ' => 'k', 'Ĺ' => 'L', 'ĺ' => 'l', 'Ļ' => 'L', 'ļ' => 'l', 'Ľ' => 'L', 'ľ' => 'l', 'Ŀ' => 'L', 'ŀ' => 'l', 'Ł' => 'L', 'ł' => 'l', 'Ń' => 'N', 'ń' => 'n', 'Ņ' => 'N', 'ņ' => 'n', 'Ň' => 'N', 'ň' => 'n', 'ʼn' => 'n', 'Ŋ' => 'N', 'ŋ' => 'n', 'Ō' => 'O', 'ō' => 'o', 'Ŏ' => 'O', 'ŏ' => 'o', 'Ő' => 'O', 'ő' => 'o', 'Œ' => 'OE','œ' => 'oe', 'Ŕ' => 'R','ŕ' => 'r', 'Ŗ' => 'R','ŗ' => 'r', 'Ř' => 'R','ř' => 'r', 'Ś' => 'S','ś' => 's', 'Ŝ' => 'S','ŝ' => 's', 'Ş' => 'S','ş' => 's', 'Š' => 'S', 'š' => 's', 'Ţ' => 'T', 'ţ' => 't', 'Ť' => 'T', 'ť' => 't', 'Ŧ' => 'T', 'ŧ' => 't', 'Ũ' => 'U', 'ũ' => 'u', 'Ū' => 'U', 'ū' => 'u', 'Ŭ' => 'U', 'ŭ' => 'u', 'Ů' => 'U', 'ů' => 'u', 'Ű' => 'U', 'ű' => 'u', 'Ų' => 'U', 'ų' => 'u', 'Ŵ' => 'W', 'ŵ' => 'w', 'Ŷ' => 'Y', 'ŷ' => 'y', 'Ÿ' => 'Y', 'Ź' => 'Z', 'ź' => 'z', 'Ż' => 'Z', 'ż' => 'z', 'Ž' => 'Z', 'ž' => 'z', 'ſ' => 's', // Decompositions for Latin Extended-B 'Ș' => 'S', 'ș' => 's', 'Ț' => 'T', 'ț' => 't', // Euro Sign '€' => 'E', // GBP (Pound) Sign '£' => '', // Vowels with diacritic (Vietnamese) // unmarked 'Ơ' => 'O', 'ơ' => 'o', 'Ư' => 'U', 'ư' => 'u', // grave accent 'Ầ' => 'A', 'ầ' => 'a', 'Ằ' => 'A', 'ằ' => 'a', 'Ề' => 'E', 'ề' => 'e', 'Ồ' => 'O', 'ồ' => 'o', 'Ờ' => 'O', 'ờ' => 'o', 'Ừ' => 'U', 'ừ' => 'u', 'Ỳ' => 'Y', 'ỳ' => 'y', // hook 'Ả' => 'A', 'ả' => 'a', 'Ẩ' => 'A', 'ẩ' => 'a', 'Ẳ' => 'A', 'ẳ' => 'a', 'Ẻ' => 'E', 'ẻ' => 'e', 'Ể' => 'E', 'ể' => 'e', 'Ỉ' => 'I', 'ỉ' => 'i', 'Ỏ' => 'O', 'ỏ' => 'o', 'Ổ' => 'O', 'ổ' => 'o', 'Ở' => 'O', 'ở' => 'o', 'Ủ' => 'U', 'ủ' => 'u', 'Ử' => 'U', 'ử' => 'u', 'Ỷ' => 'Y', 'ỷ' => 'y', // tilde 'Ẫ' => 'A', 'ẫ' => 'a', 'Ẵ' => 'A', 'ẵ' => 'a', 'Ẽ' => 'E', 'ẽ' => 'e', 'Ễ' => 'E', 'ễ' => 'e', 'Ỗ' => 'O', 'ỗ' => 'o', 'Ỡ' => 'O', 'ỡ' => 'o', 'Ữ' => 'U', 'ữ' => 'u', 'Ỹ' => 'Y', 'ỹ' => 'y', // acute accent 'Ấ' => 'A', 'ấ' => 'a', 'Ắ' => 'A', 'ắ' => 'a', 'Ế' => 'E', 'ế' => 'e', 'Ố' => 'O', 'ố' => 'o', 'Ớ' => 'O', 'ớ' => 'o', 'Ứ' => 'U', 'ứ' => 'u', // dot below 'Ạ' => 'A', 'ạ' => 'a', 'Ậ' => 'A', 'ậ' => 'a', 'Ặ' => 'A', 'ặ' => 'a', 'Ẹ' => 'E', 'ẹ' => 'e', 'Ệ' => 'E', 'ệ' => 'e', 'Ị' => 'I', 'ị' => 'i', 'Ọ' => 'O', 'ọ' => 'o', 'Ộ' => 'O', 'ộ' => 'o', 'Ợ' => 'O', 'ợ' => 'o', 'Ụ' => 'U', 'ụ' => 'u', 'Ự' => 'U', 'ự' => 'u', 'Ỵ' => 'Y', 'ỵ' => 'y', // Vowels with diacritic (Chinese, Hanyu Pinyin) 'ɑ' => 'a', // macron 'Ǖ' => 'U', 'ǖ' => 'u', // acute accent 'Ǘ' => 'U', 'ǘ' => 'u', // caron 'Ǎ' => 'A', 'ǎ' => 'a', 'Ǐ' => 'I', 'ǐ' => 'i', 'Ǒ' => 'O', 'ǒ' => 'o', 'Ǔ' => 'U', 'ǔ' => 'u', 'Ǚ' => 'U', 'ǚ' => 'u', // grave accent 'Ǜ' => 'U', 'ǜ' => 'u', ); var_dump($chars);
based on mZvt7
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0rc3
array(309) { ["ª"]=> string(1) "a" ["º"]=> string(1) "o" ["À"]=> string(1) "A" ["Á"]=> string(1) "A" ["Â"]=> string(1) "A" ["Ã"]=> string(1) "A" ["Ä"]=> string(1) "A" ["Å"]=> string(1) "A" ["Æ"]=> string(2) "AE" ["Ç"]=> string(1) "C" ["È"]=> string(1) "E" ["É"]=> string(1) "E" ["Ê"]=> string(1) "E" ["Ë"]=> string(1) "E" ["Ì"]=> string(1) "I" ["Í"]=> string(1) "I" ["Î"]=> string(1) "I" ["Ï"]=> string(1) "I" ["Ð"]=> string(1) "D" ["Ñ"]=> string(1) "N" ["Ò"]=> string(1) "O" ["Ó"]=> string(1) "O" ["Ô"]=> string(1) "O" ["Õ"]=> string(1) "O" ["Ö"]=> string(1) "O" ["Ù"]=> string(1) "U" ["Ú"]=> string(1) "U" ["Û"]=> string(1) "U" ["Ü"]=> string(1) "U" ["Ý"]=> string(1) "Y" ["Þ"]=> string(2) "TH" ["ß"]=> string(1) "s" ["à"]=> string(1) "a" ["á"]=> string(1) "a" ["â"]=> string(1) "a" ["ã"]=> string(1) "a" ["ä"]=> string(1) "a" ["å"]=> string(1) "a" ["æ"]=> string(2) "ae" ["ç"]=> string(1) "c" ["è"]=> string(1) "e" ["é"]=> string(1) "e" ["ê"]=> string(1) "e" ["ë"]=> string(1) "e" ["ì"]=> string(1) "i" ["í"]=> string(1) "i" ["î"]=> string(1) "i" ["ï"]=> string(1) "i" ["ð"]=> string(1) "d" ["ñ"]=> string(1) "n" ["ò"]=> string(1) "o" ["ó"]=> string(1) "o" ["ô"]=> string(1) "o" ["õ"]=> string(1) "o" ["ö"]=> string(1) "o" ["ø"]=> string(1) "o" ["ù"]=> string(1) "u" ["ú"]=> string(1) "u" ["û"]=> string(1) "u" ["ü"]=> string(1) "u" ["ý"]=> string(1) "y" ["þ"]=> string(2) "th" ["ÿ"]=> string(1) "y" ["Ø"]=> string(1) "O" ["Ā"]=> string(1) "A" ["ā"]=> string(1) "a" ["Ă"]=> string(1) "A" ["ă"]=> string(1) "a" ["Ą"]=> string(1) "A" ["ą"]=> string(1) "a" ["Ć"]=> string(1) "C" ["ć"]=> string(1) "c" ["Ĉ"]=> string(1) "C" ["ĉ"]=> string(1) "c" ["Ċ"]=> string(1) "C" ["ċ"]=> string(1) "c" ["Č"]=> string(1) "C" ["č"]=> string(1) "c" ["Ď"]=> string(1) "D" ["ď"]=> string(1) "d" ["Đ"]=> string(1) "D" ["đ"]=> string(1) "d" ["Ē"]=> string(1) "E" ["ē"]=> string(1) "e" ["Ĕ"]=> string(1) "E" ["ĕ"]=> string(1) "e" ["Ė"]=> string(1) "E" ["ė"]=> string(1) "e" ["Ę"]=> string(1) "E" ["ę"]=> string(1) "e" ["Ě"]=> string(1) "E" ["ě"]=> string(1) "e" ["Ĝ"]=> string(1) "G" ["ĝ"]=> string(1) "g" ["Ğ"]=> string(1) "G" ["ğ"]=> string(1) "g" ["Ġ"]=> string(1) "G" ["ġ"]=> string(1) "g" ["Ģ"]=> string(1) "G" ["ģ"]=> string(1) "g" ["Ĥ"]=> string(1) "H" ["ĥ"]=> string(1) "h" ["Ħ"]=> string(1) "H" ["ħ"]=> string(1) "h" ["Ĩ"]=> string(1) "I" ["ĩ"]=> string(1) "i" ["Ī"]=> string(1) "I" ["ī"]=> string(1) "i" ["Ĭ"]=> string(1) "I" ["ĭ"]=> string(1) "i" ["Į"]=> string(1) "I" ["į"]=> string(1) "i" ["İ"]=> string(1) "I" ["ı"]=> string(1) "i" ["IJ"]=> string(2) "IJ" ["ij"]=> string(2) "ij" ["Ĵ"]=> string(1) "J" ["ĵ"]=> string(1) "j" ["Ķ"]=> string(1) "K" ["ķ"]=> string(1) "k" ["ĸ"]=> string(1) "k" ["Ĺ"]=> string(1) "L" ["ĺ"]=> string(1) "l" ["Ļ"]=> string(1) "L" ["ļ"]=> string(1) "l" ["Ľ"]=> string(1) "L" ["ľ"]=> string(1) "l" ["Ŀ"]=> string(1) "L" ["ŀ"]=> string(1) "l" ["Ł"]=> string(1) "L" ["ł"]=> string(1) "l" ["Ń"]=> string(1) "N" ["ń"]=> string(1) "n" ["Ņ"]=> string(1) "N" ["ņ"]=> string(1) "n" ["Ň"]=> string(1) "N" ["ň"]=> string(1) "n" ["ʼn"]=> string(1) "n" ["Ŋ"]=> string(1) "N" ["ŋ"]=> string(1) "n" ["Ō"]=> string(1) "O" ["ō"]=> string(1) "o" ["Ŏ"]=> string(1) "O" ["ŏ"]=> string(1) "o" ["Ő"]=> string(1) "O" ["ő"]=> string(1) "o" ["Œ"]=> string(2) "OE" ["œ"]=> string(2) "oe" ["Ŕ"]=> string(1) "R" ["ŕ"]=> string(1) "r" ["Ŗ"]=> string(1) "R" ["ŗ"]=> string(1) "r" ["Ř"]=> string(1) "R" ["ř"]=> string(1) "r" ["Ś"]=> string(1) "S" ["ś"]=> string(1) "s" ["Ŝ"]=> string(1) "S" ["ŝ"]=> string(1) "s" ["Ş"]=> string(1) "S" ["ş"]=> string(1) "s" ["Š"]=> string(1) "S" ["š"]=> string(1) "s" ["Ţ"]=> string(1) "T" ["ţ"]=> string(1) "t" ["Ť"]=> string(1) "T" ["ť"]=> string(1) "t" ["Ŧ"]=> string(1) "T" ["ŧ"]=> string(1) "t" ["Ũ"]=> string(1) "U" ["ũ"]=> string(1) "u" ["Ū"]=> string(1) "U" ["ū"]=> string(1) "u" ["Ŭ"]=> string(1) "U" ["ŭ"]=> string(1) "u" ["Ů"]=> string(1) "U" ["ů"]=> string(1) "u" ["Ű"]=> string(1) "U" ["ű"]=> string(1) "u" ["Ų"]=> string(1) "U" ["ų"]=> string(1) "u" ["Ŵ"]=> string(1) "W" ["ŵ"]=> string(1) "w" ["Ŷ"]=> string(1) "Y" ["ŷ"]=> string(1) "y" ["Ÿ"]=> string(1) "Y" ["Ź"]=> string(1) "Z" ["ź"]=> string(1) "z" ["Ż"]=> string(1) "Z" ["ż"]=> string(1) "z" ["Ž"]=> string(1) "Z" ["ž"]=> string(1) "z" ["ſ"]=> string(1) "s" ["Ș"]=> string(1) "S" ["ș"]=> string(1) "s" ["Ț"]=> string(1) "T" ["ț"]=> string(1) "t" ["€"]=> string(1) "E" ["£"]=> string(0) "" ["Ơ"]=> string(1) "O" ["ơ"]=> string(1) "o" ["Ư"]=> string(1) "U" ["ư"]=> string(1) "u" ["Ầ"]=> string(1) "A" ["ầ"]=> string(1) "a" ["Ằ"]=> string(1) "A" ["ằ"]=> string(1) "a" ["Ề"]=> string(1) "E" ["ề"]=> string(1) "e" ["Ồ"]=> string(1) "O" ["ồ"]=> string(1) "o" ["Ờ"]=> string(1) "O" ["ờ"]=> string(1) "o" ["Ừ"]=> string(1) "U" ["ừ"]=> string(1) "u" ["Ỳ"]=> string(1) "Y" ["ỳ"]=> string(1) "y" ["Ả"]=> string(1) "A" ["ả"]=> string(1) "a" ["Ẩ"]=> string(1) "A" ["ẩ"]=> string(1) "a" ["Ẳ"]=> string(1) "A" ["ẳ"]=> string(1) "a" ["Ẻ"]=> string(1) "E" ["ẻ"]=> string(1) "e" ["Ể"]=> string(1) "E" ["ể"]=> string(1) "e" ["Ỉ"]=> string(1) "I" ["ỉ"]=> string(1) "i" ["Ỏ"]=> string(1) "O" ["ỏ"]=> string(1) "o" ["Ổ"]=> string(1) "O" ["ổ"]=> string(1) "o" ["Ở"]=> string(1) "O" ["ở"]=> string(1) "o" ["Ủ"]=> string(1) "U" ["ủ"]=> string(1) "u" ["Ử"]=> string(1) "U" ["ử"]=> string(1) "u" ["Ỷ"]=> string(1) "Y" ["ỷ"]=> string(1) "y" ["Ẫ"]=> string(1) "A" ["ẫ"]=> string(1) "a" ["Ẵ"]=> string(1) "A" ["ẵ"]=> string(1) "a" ["Ẽ"]=> string(1) "E" ["ẽ"]=> string(1) "e" ["Ễ"]=> string(1) "E" ["ễ"]=> string(1) "e" ["Ỗ"]=> string(1) "O" ["ỗ"]=> string(1) "o" ["Ỡ"]=> string(1) "O" ["ỡ"]=> string(1) "o" ["Ữ"]=> string(1) "U" ["ữ"]=> string(1) "u" ["Ỹ"]=> string(1) "Y" ["ỹ"]=> string(1) "y" ["Ấ"]=> string(1) "A" ["ấ"]=> string(1) "a" ["Ắ"]=> string(1) "A" ["ắ"]=> string(1) "a" ["Ế"]=> string(1) "E" ["ế"]=> string(1) "e" ["Ố"]=> string(1) "O" ["ố"]=> string(1) "o" ["Ớ"]=> string(1) "O" ["ớ"]=> string(1) "o" ["Ứ"]=> string(1) "U" ["ứ"]=> string(1) "u" ["Ạ"]=> string(1) "A" ["ạ"]=> string(1) "a" ["Ậ"]=> string(1) "A" ["ậ"]=> string(1) "a" ["Ặ"]=> string(1) "A" ["ặ"]=> string(1) "a" ["Ẹ"]=> string(1) "E" ["ẹ"]=> string(1) "e" ["Ệ"]=> string(1) "E" ["ệ"]=> string(1) "e" ["Ị"]=> string(1) "I" ["ị"]=> string(1) "i" ["Ọ"]=> string(1) "O" ["ọ"]=> string(1) "o" ["Ộ"]=> string(1) "O" ["ộ"]=> string(1) "o" ["Ợ"]=> string(1) "O" ["ợ"]=> string(1) "o" ["Ụ"]=> string(1) "U" ["ụ"]=> string(1) "u" ["Ự"]=> string(1) "U" ["ự"]=> string(1) "u" ["Ỵ"]=> string(1) "Y" ["ỵ"]=> string(1) "y" ["ɑ"]=> string(1) "a" ["Ǖ"]=> string(1) "U" ["ǖ"]=> string(1) "u" ["Ǘ"]=> string(1) "U" ["ǘ"]=> string(1) "u" ["Ǎ"]=> string(1) "A" ["ǎ"]=> string(1) "a" ["Ǐ"]=> string(1) "I" ["ǐ"]=> string(1) "i" ["Ǒ"]=> string(1) "O" ["ǒ"]=> string(1) "o" ["Ǔ"]=> string(1) "U" ["ǔ"]=> string(1) "u" ["Ǚ"]=> string(1) "U" ["ǚ"]=> string(1) "u" ["Ǜ"]=> string(1) "U" ["ǜ"]=> string(1) "u" }