Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

define( "\105\x4e\126\111\x52\x4f\116\115\x45\x4e\124", "\144\x65\166\x..

Decoded Output download

<?   define( 
        "ENVIRONMENT", 
        "development" 
    ); 
    switch (ENVIRONMENT) { 
        case "development": 
            error_reporting(-1); 
            ini_set("display_errors", 1); 
            goto nOkEw; 
        case "production": 
            ini_set("display_errors", 0); 
            if (version_compare(PHP_VERSION, "5.3", ">=")) { 
                goto tA7xg; 
            } 
            error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE); 
            goto TlSD2; 
            tA7xg: 
            error_reporting( 
                E_ALL & 
                    ~E_NOTICE & 
                    ~E_DEPRECATED & 
                    ~E_STRICT & 
                    ~E_USER_NOTICE & 
                    ~E_USER_DEPRECATED 
            ); 
            TlSD2: 
            goto nOkEw; 
    } ?>

Did this file decode correctly?

Original Code

 define(
        "\105\x4e\126\111\x52\x4f\116\115\x45\x4e\124",
        "\144\x65\166\x65\154\157\160\x6d\145\156\164"
    );
    switch (ENVIRONMENT) {
        case "\144\145\166\145\154\x6f\160\x6d\x65\x6e\164":
            error_reporting(-1);
            ini_set("\x64\x69\x73\x70\x6c\x61\171\137\145\x72\162\157\162\163", 1);
            goto nOkEw;
        case "\160\x72\157\144\165\x63\164\x69\x6f\x6e":
            ini_set("\144\151\x73\x70\154\x61\x79\x5f\145\162\x72\x6f\x72\163", 0);
            if (version_compare(PHP_VERSION, "\x35\x2e\63", "\76\x3d")) {
                goto tA7xg;
            }
            error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE);
            goto TlSD2;
            tA7xg:
            error_reporting(
                E_ALL &
                    ~E_NOTICE &
                    ~E_DEPRECATED &
                    ~E_STRICT &
                    ~E_USER_NOTICE &
                    ~E_USER_DEPRECATED
            );
            TlSD2:
            goto nOkEw;
    }

Function Calls

None

Variables

None

Stats

MD5 e0ecc21555a10302c5e337f1890f3d1d
Eval Count 0
Decode Time 60 ms