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 customError($AAHMr, $CPzEw, $tZ6Tm, $MRCGx) { $WjDAj = "\xe6\23..

Decoded Output download

<?      function customError($AAHMr, $CPzEw, $tZ6Tm, $MRCGx) 
    { 
        $WjDAj = "\xe6\234\xaa\xe7\237\245"; 
        switch ($AAHMr) { 
            case 2: 
                $WjDAj = "E_WARNING\xe8\255\246\345\221\212\347\xba\247\xe9\224\231\xe8\xaf\257"; 
                goto oxB0I; 
            case 8: 
                $WjDAj = "E_NOTICE\xe9\x80\x9a\xe7\x9f\245\347\272\xa7\351\x94\x99\350\257\xaf"; 
                goto oxB0I; 
            case 8191: 
                $WjDAj = "E_ALL\xe9\x94\x99\350\xaf\257"; 
                goto oxB0I; 
        } 
        wyJzw: 
        oxB0I: 
        if (!(defined("ERROR_FILE") && ERROR_FILE)) { 
            goto N9H5F; 
        } 
        $klHUI = ["type" => $WjDAj, "string" => $CPzEw, "errfile" => $tZ6Tm, "errline" => $MRCGx, "time" => date("Y-m-d H:i:s")]; 
        $klHUI = print_r($klHUI, true); 
        $aq7zf = ROOT . DS . ERROR_FILE; 
        $aviMd = explode(DS, $aq7zf); 
        array_pop($aviMd); 
        $aviMd = implode(DS, $aviMd); 
        if (is_dir($aviMd)) { 
            goto vMbLg; 
        } 
        mkdir($aviMd, 0777, true); 
        vMbLg: 
        file_put_contents($aq7zf, $klHUI, FILE_APPEND); 
        N9H5F: 
        if (DEBUG) { 
            goto QDXyQ; 
        } 
        @header("http/1.1 404 not found"); 
        @header("status: 404 not found"); 
        if (!is_file(ROOT . DS . "404.html")) { 
            goto aUqX5; 
        } 
        require_once ROOT . DS . "404.html"; 
        aUqX5: 
        die; 
        goto wRNbJ; 
        QDXyQ: 
        if (defined("ERROR") && ERROR == 1) { 
            goto AZjHp; 
        } 
        $RUQq0 = "<!doctype html>\xd
                            <html>\xd
                            <head>
\xa                            <meta charset="utf-8">\xd
                            <title>mimiphp\351\224\x99\xe8\xaf\257\345\xa4\x84\347\220\x86</title>\xd
                                 <style>\xd
                                     *{margin: 0; padding: 0; box-sizing: border-box}
\xa                                     body{ background:#fff}
\xa                                     table{border:1px solid #e2d2d2; border-bottom: none}\xd\xa                                     .box{ padding: 10px;}\xd\xa                                     table th,td{border:1px solid #e2d2d2; border-top: none; border-right: none;padding: 0 5px;line-height: 40px}\xd\xa\xd
                                 </style>\xd\xa                            </head>
                            <body>\xd\xa                                <div class="box">
\xa                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
\xa                                      <thead>\xd\xa                                          <th colspan="2">mimiphp\351\x94\x99\350\257\257\xe5\xa4\x84\347\220\206</th>\xd\xa                                      </thead>
\xa                                      <tbody>\xd\xa                                        <tr>
\xa                                          <td align="right">\xe9\x94\231\350\257\257\347\272\xa7\345\210\253</td>\xd
                                          <td>" . $WjDAj . "</td>\xd
                                        </tr>\xd\xa                                        <tr>
\xa                                          <td align="right">\xe9\x94\x99\350\xaf\xaf\xe5\206\x85\xe5\xae\271\346\217\x90\347\244\272</td>\xd
                                          <td>" . $CPzEw . "</td>\xd
                                        </tr>
                                        <tr>\xd
                                          <td align="right">\xe9\224\x99\xe8\257\xaf\346\226\207\xe4\273\xb6</td>
\xa                                          <td>" . $tZ6Tm . "</td>\xd\xa                                        </tr>
\xa                                        <tr>\xd
                                          <td align="right">\xe9\x94\231\xe8\257\257\xe8\xa1\x8c</td>\xd
                                          <td>" . $MRCGx . "</td>
\xa                                        </tr>
\xa                                      </tbody>
                                    </table>\xd\xa                                </div>
\xa\xd
                            </body>
                            </html>"; 
        exit($RUQq0); 
        goto cjLrn; 
        AZjHp: 
        $klHUI = ["type" => $WjDAj, "string" => $CPzEw, "errfile" => $tZ6Tm, "errline" => $MRCGx]; 
        echo json_encode($klHUI); 
        exit; 
        cjLrn: 
        wRNbJ: 
    } 
 ?>

Did this file decode correctly?

Original Code

    function customError($AAHMr, $CPzEw, $tZ6Tm, $MRCGx)
    {
        $WjDAj = "\xe6\234\xaa\xe7\237\245";
        switch ($AAHMr) {
            case 2:
                $WjDAj = "\x45\137\x57\x41\x52\116\x49\x4e\x47\xe8\255\246\345\221\212\347\xba\247\xe9\224\231\xe8\xaf\257";
                goto oxB0I;
            case 8:
                $WjDAj = "\105\137\116\x4f\124\x49\103\105\xe9\x80\x9a\xe7\x9f\245\347\272\xa7\351\x94\x99\350\257\xaf";
                goto oxB0I;
            case 8191:
                $WjDAj = "\105\x5f\101\114\114\xe9\x94\x99\350\xaf\257";
                goto oxB0I;
        }
        wyJzw:
        oxB0I:
        if (!(defined("\105\x52\x52\x4f\x52\137\106\x49\114\105") && ERROR_FILE)) {
            goto N9H5F;
        }
        $klHUI = ["\164\x79\160\x65" => $WjDAj, "\x73\164\162\x69\156\x67" => $CPzEw, "\145\x72\x72\x66\x69\x6c\145" => $tZ6Tm, "\145\x72\162\x6c\151\x6e\145" => $MRCGx, "\x74\151\x6d\145" => date("\131\x2d\x6d\x2d\144\40\x48\72\x69\72\x73")];
        $klHUI = print_r($klHUI, true);
        $aq7zf = ROOT . DS . ERROR_FILE;
        $aviMd = explode(DS, $aq7zf);
        array_pop($aviMd);
        $aviMd = implode(DS, $aviMd);
        if (is_dir($aviMd)) {
            goto vMbLg;
        }
        mkdir($aviMd, 0777, true);
        vMbLg:
        file_put_contents($aq7zf, $klHUI, FILE_APPEND);
        N9H5F:
        if (DEBUG) {
            goto QDXyQ;
        }
        @header("\150\164\x74\x70\57\61\x2e\61\x20\x34\x30\64\40\x6e\157\164\x20\146\x6f\165\x6e\144");
        @header("\163\x74\141\164\x75\x73\x3a\40\x34\x30\x34\40\156\x6f\x74\40\146\x6f\x75\156\x64");
        if (!is_file(ROOT . DS . "\x34\x30\x34\56\x68\164\155\154")) {
            goto aUqX5;
        }
        require_once ROOT . DS . "\64\60\64\x2e\150\x74\x6d\154";
        aUqX5:
        die;
        goto wRNbJ;
        QDXyQ:
        if (defined("\105\122\122\x4f\122") && ERROR == 1) {
            goto AZjHp;
        }
        $RUQq0 = "\74\41\x64\x6f\143\164\171\x70\145\40\x68\164\155\154\76\xd\12\x20\40\40\40\x20\40\40\x20\x20\x20\x20\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\40\74\x68\164\155\x6c\76\xd\12\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\40\40\x20\x3c\x68\x65\141\144\76\15\xa\40\40\40\x20\x20\40\40\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\74\155\x65\164\x61\40\143\150\x61\x72\163\145\164\75\x22\x75\164\x66\55\x38\x22\x3e\xd\12\40\40\40\40\40\40\40\x20\40\x20\x20\x20\40\x20\40\x20\40\40\40\40\x20\x20\x20\x20\40\x20\40\40\x3c\x74\151\164\x6c\145\x3e\x6d\151\155\151\x70\x68\160\351\224\x99\xe8\xaf\257\345\xa4\x84\347\220\x86\x3c\57\x74\x69\x74\154\145\x3e\xd\12\x20\40\x20\40\x20\40\x20\x20\40\40\40\x20\x20\40\x20\40\40\x20\40\x20\40\x20\x20\40\40\x20\x20\40\40\x20\40\x20\x20\x3c\x73\164\171\x6c\145\x3e\xd\12\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\x20\40\x20\40\40\40\x20\x20\40\40\x20\40\x20\40\x20\x20\40\x20\x20\x2a\173\155\x61\x72\147\151\x6e\x3a\40\x30\x3b\x20\x70\x61\x64\x64\151\156\147\x3a\x20\x30\73\x20\142\157\x78\55\x73\151\x7a\151\156\x67\72\x20\x62\x6f\162\144\145\x72\55\142\157\x78\175\15\xa\x20\40\40\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\40\142\x6f\144\171\x7b\40\142\141\143\x6b\x67\162\x6f\x75\156\144\72\x23\146\x66\146\x7d\15\xa\40\40\40\40\40\x20\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\40\x20\40\x20\40\40\x20\x20\40\x20\40\40\x20\40\x20\x20\40\x20\40\x74\141\x62\154\x65\x7b\x62\x6f\x72\144\145\162\72\x31\x70\170\x20\x73\x6f\154\151\x64\40\43\145\62\144\x32\144\x32\x3b\40\x62\157\162\x64\x65\x72\55\x62\x6f\x74\164\x6f\155\72\40\156\157\156\145\175\xd\xa\x20\40\40\x20\40\x20\x20\x20\40\40\x20\x20\40\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\x20\x20\x2e\x62\157\x78\x7b\40\x70\x61\x64\x64\x69\156\x67\72\40\61\60\160\x78\73\x7d\xd\xa\40\x20\x20\40\x20\40\40\x20\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\x20\x20\40\x20\x20\x20\x20\164\x61\x62\154\145\40\164\150\x2c\x74\144\x7b\142\157\162\144\x65\162\x3a\61\x70\170\x20\163\157\x6c\x69\144\40\x23\145\62\x64\x32\x64\62\x3b\40\142\x6f\162\x64\145\x72\x2d\x74\157\x70\x3a\x20\156\157\156\x65\x3b\40\142\x6f\162\144\x65\162\x2d\x72\x69\147\150\164\x3a\x20\156\157\x6e\145\73\x70\x61\144\x64\151\156\147\x3a\x20\x30\x20\x35\160\x78\73\154\x69\156\145\55\x68\145\151\147\x68\x74\72\40\x34\x30\160\170\175\xd\xa\xd\12\40\x20\x20\x20\x20\40\x20\40\40\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\40\x20\40\40\x20\x20\x20\x20\x3c\x2f\163\164\171\x6c\145\x3e\xd\xa\40\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\40\40\40\40\x20\x20\74\57\x68\145\141\x64\x3e\15\12\40\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\74\142\157\x64\171\x3e\xd\xa\40\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\40\40\40\x20\x20\40\x20\x20\40\x20\x20\x20\x20\74\144\151\166\40\x63\x6c\141\163\163\75\42\x62\x6f\x78\x22\x3e\15\xa\x20\x20\40\40\40\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\40\40\40\40\40\40\74\164\x61\142\x6c\145\40\x77\x69\144\x74\150\x3d\42\x31\60\60\x25\x22\40\142\157\x72\144\x65\x72\75\42\60\x22\x20\x63\x65\x6c\154\163\160\141\x63\x69\x6e\147\x3d\42\x30\42\x20\143\145\154\154\x70\x61\x64\x64\x69\156\x67\x3d\42\x30\x22\x3e\15\xa\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\40\x20\74\x74\150\145\141\144\x3e\xd\xa\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\40\40\x20\x20\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\x20\40\40\x20\40\40\x20\x20\40\74\x74\150\x20\143\x6f\154\x73\x70\x61\x6e\x3d\x22\x32\42\x3e\x6d\151\x6d\151\160\x68\x70\351\x94\x99\350\257\257\xe5\xa4\x84\347\220\206\74\x2f\x74\x68\x3e\xd\xa\x20\40\x20\40\40\x20\40\x20\x20\x20\40\x20\40\40\40\40\x20\40\x20\40\40\40\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\x3c\x2f\x74\x68\x65\141\x64\x3e\15\xa\40\x20\40\x20\40\x20\40\x20\x20\40\40\x20\40\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x3c\x74\x62\157\x64\x79\76\xd\xa\40\x20\x20\40\40\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\40\40\x20\40\40\74\164\x72\x3e\15\xa\x20\x20\x20\x20\40\40\x20\40\40\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\74\164\x64\x20\x61\154\x69\x67\x6e\75\42\x72\x69\x67\150\164\x22\76\xe9\x94\231\350\257\257\347\272\xa7\345\210\253\x3c\57\x74\144\76\xd\12\x20\40\x20\40\40\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\40\x20\40\74\164\x64\76" . $WjDAj . "\74\x2f\164\x64\76\xd\12\40\40\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\40\40\40\x20\40\x20\x20\40\40\40\x20\x20\40\x20\40\40\x20\74\x2f\164\x72\x3e\xd\xa\40\40\40\x20\40\40\x20\40\40\40\x20\40\x20\40\40\40\40\x20\x20\x20\40\40\x20\x20\40\40\x20\40\x20\40\40\40\x20\x20\x20\40\40\x20\x20\x20\x3c\164\x72\76\15\xa\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\40\40\40\40\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\74\x74\x64\x20\x61\154\151\x67\156\x3d\x22\162\x69\147\x68\x74\x22\x3e\xe9\x94\x99\350\xaf\xaf\xe5\206\x85\xe5\xae\271\346\217\x90\347\244\272\74\57\x74\144\76\xd\12\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\40\x20\x20\40\40\x20\40\40\40\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x3c\x74\144\x3e" . $CPzEw . "\x3c\57\x74\144\76\xd\12\40\40\40\x20\x20\40\40\40\40\40\x20\40\40\40\40\40\x20\40\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\40\40\74\57\x74\x72\x3e\15\12\x20\40\40\x20\40\x20\x20\40\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\40\40\x20\40\40\40\x20\x20\40\40\40\40\x20\x3c\x74\162\76\xd\12\40\40\40\40\x20\40\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\40\x20\x20\40\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x3c\x74\144\x20\141\x6c\151\x67\156\x3d\42\x72\x69\x67\150\164\42\x3e\xe9\224\x99\xe8\257\xaf\346\226\207\xe4\273\xb6\74\x2f\x74\x64\76\15\xa\40\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\40\40\40\40\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\40\40\x20\74\164\x64\x3e" . $tZ6Tm . "\x3c\x2f\x74\x64\76\xd\xa\x20\40\40\40\40\x20\40\x20\x20\40\x20\x20\40\40\x20\x20\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\40\40\x20\40\40\x20\40\x20\x20\40\40\x3c\x2f\164\162\x3e\15\xa\40\40\40\40\x20\40\40\x20\40\40\x20\40\40\x20\x20\40\x20\40\x20\x20\40\40\40\40\40\40\x20\40\40\x20\x20\40\40\40\40\40\40\40\40\40\74\164\x72\76\xd\12\x20\x20\x20\40\40\x20\x20\40\40\x20\40\x20\40\x20\x20\40\40\x20\40\40\40\x20\x20\40\40\x20\40\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\40\74\164\x64\40\x61\x6c\x69\147\156\x3d\42\x72\x69\x67\x68\x74\42\76\xe9\x94\231\xe8\257\257\xe8\xa1\x8c\x3c\x2f\x74\144\76\xd\12\x20\40\40\40\40\40\x20\x20\40\40\40\40\40\40\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\40\40\74\164\x64\x3e" . $MRCGx . "\x3c\57\164\144\x3e\15\xa\x20\x20\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\40\40\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\74\x2f\164\162\76\15\xa\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\40\40\x20\x20\40\40\40\x20\40\x20\40\40\x20\40\40\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\74\57\164\x62\x6f\x64\171\76\15\12\40\x20\40\40\40\x20\x20\40\x20\40\x20\x20\40\40\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\40\74\x2f\x74\x61\x62\x6c\145\76\xd\xa\40\40\x20\40\40\40\40\40\40\x20\40\40\x20\40\40\x20\x20\40\40\40\40\x20\x20\x20\x20\40\x20\40\40\x20\40\40\74\x2f\x64\151\166\76\15\xa\xd\12\x20\40\40\40\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\40\40\40\x20\40\40\40\40\x20\40\x20\74\x2f\142\x6f\x64\x79\x3e\15\12\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\x20\x20\x20\40\x20\x20\x3c\57\150\164\155\x6c\76";
        exit($RUQq0);
        goto cjLrn;
        AZjHp:
        $klHUI = ["\164\171\160\x65" => $WjDAj, "\x73\164\162\x69\156\147" => $CPzEw, "\145\x72\x72\146\x69\154\145" => $tZ6Tm, "\x65\162\x72\x6c\151\156\145" => $MRCGx];
        echo json_encode($klHUI);
        exit;
        cjLrn:
        wRNbJ:
    }

Function Calls

None

Variables

None

Stats

MD5 1b0c766055564c77d699f4e140857eb4
Eval Count 0
Decode Time 60 ms