Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
function utf82utf16($utf8) { if (function_exists( 'mb_convert_encoding' )) { ret..
Decoded Output download
<? function utf82utf16($utf8) {
if (function_exists( 'mb_convert_encoding' )) {
return mb_convert_encoding( $utf8, 'UTF-16', 'UTF-8' );
}
switch (strlen( $utf8 )) {
case 1: {
return $utf8;
}
case 2: {
return chr( 7 & ord( $utf8[0] ) >> 2 ) . chr( 192 & ord( $utf8[0] ) << 6 | 63 & ord( $utf8[1] ) );
}
case 3: {
return chr( 240 & ord( $utf8[0] ) << 4 | 15 & ord( $utf8[1] ) >> 2 ) . chr( 192 & ord( $utf8[1] ) << 6 | 127 & ord( $utf8[2] ) );
}
}
return '';
}
?>
Did this file decode correctly?
Original Code
function utf82utf16($utf8) {
if (function_exists( 'mb_convert_encoding' )) {
return mb_convert_encoding( $utf8, 'UTF-16', 'UTF-8' );
}
switch (strlen( $utf8 )) {
case 1: {
return $utf8;
}
case 2: {
return chr( 7 & ord( $utf8[0] ) >> 2 ) . chr( 192 & ord( $utf8[0] ) << 6 | 63 & ord( $utf8[1] ) );
}
case 3: {
return chr( 240 & ord( $utf8[0] ) << 4 | 15 & ord( $utf8[1] ) >> 2 ) . chr( 192 & ord( $utf8[1] ) << 6 | 127 & ord( $utf8[2] ) );
}
}
return '';
}
Function Calls
None |
Stats
MD5 | fdeadb46b47cd4b5dca54e9760ec4128 |
Eval Count | 0 |
Decode Time | 92 ms |