3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_convert_case('al-fātiḥah', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('AL-FĀTIḤAH', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('ʾāli-ʿimrān', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('ʾĀLI-ʿIMRĀN', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('aṣ-ṣāffāt', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('AṢ-ṢĀFFĀT', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('ṭāʾ hāʾ', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('ṬĀʾ HĀʾ', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('ʾibrāhīm', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('ʾIBRĀHĪM', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('\'ibrāhīm', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('`ibrāhīm', MB_CASE_TITLE, 'UTF-8')); var_dump(mb_convert_case('"ibrāhīm', MB_CASE_TITLE, 'UTF-8'));
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.27, 8.0.0 - 8.0.15, 8.1.0 - 8.1.2
string(13) "Al-Fātiḥah" string(13) "Al-Fātiḥah" string(15) "ʾĀli-ʿImrān" string(15) "ʾĀli-ʿImrān" string(15) "Aṣ-Ṣāffāt" string(15) "Aṣ-Ṣāffāt" string(13) "Ṭāʾ Hāʾ" string(13) "Ṭāʾ Hāʾ" string(11) "ʾIbrāhīm" string(11) "ʾIbrāhīm" string(10) "'Ibrāhīm" string(10) "`Ibrāhīm" string(10) ""Ibrāhīm"
Output for 5.2.7 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34
string(13) "Al-Fātiḥah" string(13) "Al-Fātiḥah" string(15) "ʾāli-ʿimrān" string(15) "ʾāli-ʿimrān" string(15) "Aṣ-Ṣāffāt" string(15) "Aṣ-Ṣāffāt" string(13) "Ṭāʾ Hāʾ" string(13) "Ṭāʾ Hāʾ" string(11) "ʾibrāhīm" string(11) "ʾibrāhīm" string(10) "'ibrāhīm" string(10) "`ibrāhīm" string(10) ""ibrāhīm"
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.6
string(13) "Al-Fātiḥah" string(13) "Al-Fātiḥah" string(15) "ʾāli-ʿimrān" string(15) "ʾāli-ʿimrān" string(15) "Aṣ-Ṣāffāt" string(15) "Aṣ-Ṣāffāt" string(13) "Ṭāʾ Hāʾ" string(13) "Ṭāʾ Hāʾ" string(11) "ʾibrāhīm" string(11) "ʾibrāhīm" string(10) "'Ibrāhīm" string(10) "`ibrāhīm" string(10) ""Ibrāhīm"

preferences:
66.18 ms | 464 KiB | 5 Q