3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = 'T├Ąglich montags bis freitags'; $encoding = mb_detect_encoding($s, 'UTF-8', true); var_dump($encoding);
Output for 4.3.3 - 7.2.0
string(5) "UTF-8"
Output for 4.3.0 - 4.3.2
Warning: Wrong parameter count for mb_detect_encoding() in /in/BtZRT on line 4 NULL