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

Signing you up...

Thank you for signing up!

PHP Decode

goto A4a72; A4a72: $request->validate(["\143\x6f\144\145" => "\162\x65\x..

Decoded Output download

<?  goto A4a72; 
        A4a72: 
        $request->validate(["code" => "required|uuid"], ["code.*" => "Please enter valid purchase code."]); 
        goto D1d49; 
        A7a10: 
        try { 
            goto a65cd; 
            eb2bf: 
            D35ba: 
            goto d685e; 
            ffd42: 
            $jsonData = $response->json(); 
            goto E89c0; 
            F91dc: 
            Storage::disk("local")->put(".{$this->product}", $content); 
            goto eb2bf; 
            C559b: 
            Setting::set("purchase_code", $code); 
            goto d39d4; 
            bf549: 
            $code = $request->input("code"); 
            goto F337e; 
            E89c0: 
            if (!(isset($jsonData["status"]) && $jsonData["status"] === true)) { 
                goto D35ba; 
            } 
            goto bf549; 
            d39d4: 
            Setting::save(); 
            goto F91dc; 
            a65cd: 
            $response = Http::post($this->register_endpoint, $data); 
            goto ffd42; 
            F337e: 
            try { 
                $content = artisanCrypt()->encrypt($code); 
            } catch (\Exception $e) { 
                throw new \Exception("Couldn't register product, please contact support."); 
            } 
            goto C559b; 
            d685e: 
            return response()->json($jsonData, 200); 
            goto Ec1c7; 
            Ec1c7: ?>

Did this file decode correctly?

Original Code

goto A4a72;
        A4a72:
        $request->validate(["\143\x6f\144\145" => "\162\x65\x71\x75\x69\x72\145\x64\x7c\165\165\151\x64"], ["\143\x6f\144\x65\x2e\x2a" => "\x50\154\145\141\163\145\40\x65\x6e\x74\145\162\40\x76\141\154\151\x64\40\x70\165\162\x63\150\x61\x73\145\40\x63\157\144\x65\56"]);
        goto D1d49;
        A7a10:
        try {
            goto a65cd;
            eb2bf:
            D35ba:
            goto d685e;
            ffd42:
            $jsonData = $response->json();
            goto E89c0;
            F91dc:
            Storage::disk("\154\x6f\x63\141\154")->put("\56{$this->product}", $content);
            goto eb2bf;
            C559b:
            Setting::set("\160\165\x72\x63\x68\141\163\x65\137\x63\x6f\x64\145", $code);
            goto d39d4;
            bf549:
            $code = $request->input("\x63\157\x64\x65");
            goto F337e;
            E89c0:
            if (!(isset($jsonData["\163\164\x61\x74\165\x73"]) && $jsonData["\x73\164\x61\164\x75\163"] === true)) {
                goto D35ba;
            }
            goto bf549;
            d39d4:
            Setting::save();
            goto F91dc;
            a65cd:
            $response = Http::post($this->register_endpoint, $data);
            goto ffd42;
            F337e:
            try {
                $content = artisanCrypt()->encrypt($code);
            } catch (\Exception $e) {
                throw new \Exception("\x43\157\165\154\x64\x6e\x27\x74\x20\x72\x65\x67\151\163\164\145\162\x20\160\x72\157\144\165\143\x74\54\x20\160\154\x65\x61\x73\145\40\143\x6f\156\x74\x61\x63\164\x20\x73\x75\x70\160\x6f\162\164\56");
            }
            goto C559b;
            d685e:
            return response()->json($jsonData, 200);
            goto Ec1c7;
            Ec1c7:

Function Calls

None

Variables

None

Stats

MD5 8ce81de021854094904f3faa31a97f30
Eval Count 0
Decode Time 31 ms