3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'áéóú'; // ISO-8859-1 echo mb_detect_encoding($str, 'UTF-8'); // 'UTF-8' echo mb_detect_encoding($str, 'UTF-8', true); // false ?>
Output for 4.3.3 - 7.2.0
UTF-8UTF-8
Output for 4.3.0 - 4.3.2
UTF-8 Warning: Wrong parameter count for mb_detect_encoding() in /in/2lbLB on line 4