3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "ディーパッã"; $encoding = mb_detect_encoding($str); echo $encoding; $encoding = mb_detect_encoding(mb_convert_encoding($str, "ISO-8859-1")); echo $encoding; ?>
based on 7guI8
Output for 4.3.0 - 7.2.0
UTF-8UTF-8