3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(mb_detect_order(array('ASCII', 'UTF-8', 'ISO-8859-1'))); var_dump(mb_detect_encoding(chr(129).chr(167), mb_detect_order(), false));
Output for 4.3.3 - 7.1.0
bool(true) string(10) "ISO-8859-1"
Output for 4.3.0 - 4.3.2
bool(true) <br /> <b>Warning</b>: Wrong parameter count for mb_detect_encoding() in <b>/in/MI8pa</b> on line <b>3</b><br /> NULL