3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$result = array( "\xb0\x00", "\x43\x00", "\x00\x00" ); $result = "\ub000\u4300\u0000"; $encoding = mb_check_encoding( $result ); echo "encoding is: $encoding"; ?>
Output for 4.4.3 - 4.4.9, 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
encoding is: 1
Output for 5.0.0 - 5.1.2
Fatal error: Call to undefined function mb_check_encoding() in /in/Tllka 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/Tllka 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/Tllka on line 4