3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_convert_case("AあいうえおBBcC", MB_CASE_UPPER, "ISO-2022-JP")); var_dump(mb_strtoupper("AあいうえおBBcC", "ISO-2022-JP")); var_dump(mb_strtolower("AあいうえおBBcC", "ISO-2022-JP")); var_dump(mb_stripos("AあいうえおBBcC", "?", 0, "ISO-2022-JP")); var_dump(mb_strpos("AあいうえおBBcC", "?", 0, "ISO-2022-JP")); var_dump(mb_strpos("AあいうえおBBcC", "?", 0, "SJIS")); var_dump(mb_stripos("AあいうえおBBcC", "?", 0, "SJIS")); mb_substitute_character("none"); var_dump(mb_convert_case("AあいうえおBBcC", MB_CASE_UPPER, "ISO-2022-JP")); var_dump(mb_strtoupper("AあいうえおBBcC", "ISO-2022-JP")); var_dump(mb_strtolower("AあいうえおBBcC", "ISO-2022-JP")); var_dump(mb_stripos("AあいうえおBBcC", "?", 0, "ISO-2022-JP")); var_dump(mb_strpos("AあいうえおBBcC", "?", 0, "ISO-2022-JP")); var_dump(mb_strpos("AあいうえおBBcC", "?", 0, "SJIS")); var_dump(mb_stripos("AあいうえおBBcC", "?", 0, "SJIS"));
Output for 5.2.9 - 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, 8.1.0 - 8.1.13, 8.2rc1
string(20) "A???????????????BBCC" string(20) "A???????????????BBCC" string(20) "a???????????????bbcc" int(1) int(1) int(5) int(5) string(5) "ABBCC" string(5) "ABBCC" string(5) "abbcc" bool(false) int(1) int(5) bool(false)
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.26
string(20) "A???????????????BBCC" string(20) "A???????????????BBCC" string(20) "a???????????????bbcc" int(1) int(1) int(5) int(5) string(5) "ABBCC" string(5) "ABBCC" string(5) "abbcc" bool(false) int(1) int(5) int(5)
Output for 5.2.0 - 5.2.8
string(20) "A???????????????BBCC" string(20) "A???????????????BBCC" string(20) "a???????????????bbcc" int(1) bool(false) bool(false) int(5) string(5) "ABBCC" string(5) "ABBCC" string(5) "abbcc" bool(false) bool(false) bool(false) bool(false)
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
string(20) "A???????????????BBCC" string(20) "A???????????????BBCC" string(20) "a???????????????bbcc" Fatal error: Call to undefined function mb_stripos() in /in/EfRD5 on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(20) "A???????????????BBCC" string(20) "A???????????????BBCC" string(20) "a???????????????bbcc" Fatal error: Call to undefined function: mb_stripos() in /in/EfRD5 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
string(20) "A???????????????BBCC" string(20) "A???????????????BBCC" string(20) "a???????????????bbcc" Fatal error: Call to undefined function: mb_stripos() in /in/EfRD5 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(20) "A???????????????BBCC" string(20) "A???????????????BBCC" string(20) "a???????????????bbcc" Fatal error: Call to undefined function: mb_stripos() in /in/EfRD5 on line 5

preferences:
26.43 ms | 416 KiB | 5 Q