3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value = utf8_encode('Österreich'); $encoding = mb_detect_encoding($value); $country = $value; if ($encoding != 'ISO-8859-1') { $country = mb_convert_encoding($country, 'ISO-8859-1', $encoding); } $country = mb_strtolower($country, 'ISO-8859-1'); echo $country;
based on eJEVj
Output for 4.3.0 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.12
�sterreich