3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $content = 'Le Courrier de Sáint-Hyácinthe'; 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 strtoupper($content);
Output for 4.4.3 - 4.4.9, 5.1.3 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
LE COURRIER DE SáINT-HYáCINTHE
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.1.2
Fatal error: Call to undefined function mb_check_encoding() in /in/DrIZp on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.2
Fatal error: Call to undefined function: mb_check_encoding() in /in/DrIZp on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mb_check_encoding() in /in/DrIZp on line 4