3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(mb_detect_order()); var_dump(mb_detect_encoding(chr(129).chr(167), mb_detect_order(), false));
Output for 4.3.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> string(5) "ASCII" [1]=> string(5) "UTF-8" } bool(false)
Output for 4.3.3
array(5) { [0]=> string(5) "ASCII" [1]=> string(3) "JIS" [2]=> string(5) "UTF-8" [3]=> string(6) "EUC-JP" [4]=> string(4) "SJIS" } string(4) "SJIS"
Output for 4.3.0 - 4.3.2
array(5) { [0]=> string(5) "ASCII" [1]=> string(3) "JIS" [2]=> string(5) "UTF-8" [3]=> string(6) "EUC-JP" [4]=> string(4) "SJIS" } Warning: Wrong parameter count for mb_detect_encoding() in /in/WHpLp on line 3 NULL