Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- zend multibyte (9) --EXTENSIONS-- mbstring --INI-- zend.multibyte=On zend.script_..
Decoded Output download
--TEST--
zend multibyte (9)
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=On
zend.script_encoding=cp1251
internal_encoding=UTF-8
--FILE--
<?php
declare(encoding="EUC-JP");
// forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
// back to UTF-8. There should be only a pair of consecutive bytes that is
// valid EUC-encoded character "".
var_dump(bin2hex(""));
?>
--EXPECT--
string(16) "3f3f3fe9b4bb3f3f"
Did this file decode correctly?
Original Code
--TEST--
zend multibyte (9)
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=On
zend.script_encoding=cp1251
internal_encoding=UTF-8
--FILE--
<?php
declare(encoding="EUC-JP");
// forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
// back to UTF-8. There should be only a pair of consecutive bytes that is
// valid EUC-encoded character "".
var_dump(bin2hex(""));
?>
--EXPECT--
string(16) "3f3f3fe9b4bb3f3f"
Function Calls
None |
Stats
MD5 | 6199b50861eee6c617557ec7d634c7b1 |
Eval Count | 0 |
Decode Time | 87 ms |