3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(mb_detect_encoding(chr(129).chr(167), 'ISO-8859-*', true));
Output for 5.2.3 - 7.1.0
Warning: mb_detect_encoding(): Illegal argument in /in/ZJVfI on line 3 bool(false)
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: mb_detect_encoding() [<a href='function.mb-detect-encoding'>function.mb-detect-encoding</a>]: Illegal argument in <b>/in/ZJVfI</b> on line <b>3</b><br /> bool(false)
Output for 4.3.4 - 4.4.2
<br /> <b>Warning</b>: mb_detect_encoding(): Illegal argument in <b>/in/ZJVfI</b> on line <b>3</b><br /> bool(false)
Output for 4.3.3
<br /> <b>Warning</b>: mb_detect_encoding(): Illegal argument in <b>/in/ZJVfI</b> on line <b>3</b><br /> string(4) "SJIS"
Output for 4.3.0 - 4.3.2
<br /> <b>Warning</b>: Wrong parameter count for mb_detect_encoding() in <b>/in/ZJVfI</b> on line <b>3</b><br /> NULL