3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mb_internal_encoding('UTF-8'); $content = "L'allemand"; if(!mb_check_encoding($content, 'UTF-8') OR !($content === mb_convert_encoding(mb_convert_encoding($content, 'UTF-32', 'UTF-8' ), 'UTF-8', 'UTF-32'))) { $content = mb_convert_encoding($content, 'UTF-8'); } echo mb_convert_case($content, MB_CASE_UPPER, "UTF-8");
Output for 4.4.3 - 4.4.9, 5.1.3 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
L'ALLEMAND
Output for 5.0.0 - 5.1.2
Fatal error: Call to undefined function mb_check_encoding() in /in/93SOl on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.2
Fatal error: Call to undefined function: mb_check_encoding() in /in/93SOl on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mb_check_encoding() in /in/93SOl on line 5