3v4l.org

run code in 300+ 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.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
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:
84.06 ms | 402 KiB | 62 Q