3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set("mbstring.language", "Japanese"); var_dump(mb_detect_order()); mb_detect_order("auto"); var_dump(mb_detect_order());
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.34, 8.3.0 - 8.3.35, 8.4.1 - 8.4.26, 8.5.0 - 8.5.11
array(2) { [0]=> string(5) "ASCII" [1]=> string(5) "UTF-8" } array(5) { [0]=> string(5) "ASCII" [1]=> string(3) "JIS" [2]=> string(5) "UTF-8" [3]=> string(6) "EUC-JP" [4]=> string(4) "SJIS" }

preferences:
30.84 ms | 1497 KiB | 7 Q