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 git.master_jit, git.master
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 rfc.property-hooks
string(20) "A???????????????BBCC" string(20) "A???????????????BBCC" string(20) "a???????????????bbcc" bool(false) bool(false) bool(false) bool(false) string(5) "ABBCC" string(5) "ABBCC" string(5) "abbcc" bool(false) bool(false) bool(false) bool(false)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
28.91 ms | 407 KiB | 5 Q