3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $source = mb_convert_encoding('test', "unicode-le", "utf-8"); $source = unpack('C*', $source); var_dump($source); $source = mb_convert_encoding('test', "unicode-be", "utf-8"); $source = unpack('C*', $source); var_dump($source);
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: mb_convert_encoding(): Unknown encoding "unicode-le" in /in/unCLQ on line 3 array(0) { } Warning: mb_convert_encoding(): Unknown encoding "unicode-be" in /in/unCLQ on line 9 array(0) { }
Output for hhvm-3.12.0
Warning: Unknown encoding "unicode-le" in /in/unCLQ on line 3 array(0) { } Warning: Unknown encoding "unicode-be" in /in/unCLQ on line 9 array(0) { }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.1
Warning: mb_convert_encoding() [http://www.php.net/function.mb-convert-encoding]: Unknown encoding "unicode-le" in /in/unCLQ on line 3 array(0) { } Warning: mb_convert_encoding() [http://www.php.net/function.mb-convert-encoding]: Unknown encoding "unicode-be" in /in/unCLQ on line 9 array(0) { }