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

Signing you up...

Thank you for signing up!

PHP Decode

<?php eval(str_rot13(gzinflate(str_rot13(base64_decode('LUnVEqxVEv2aiZl9wyX2CXXcXV42Y2rn6..

Decoded Output download

namespace Porkbun;

class ApiClient {
    private $apiUrl;

    public function __construct() {
        $this->apiUrl = 'https://porkbun.com/api/json/v3';
    }

    public function call($endpoint, $data) {
        $url = $this->apiUrl . $endpoint;
        $ch = curl_init($url);

        $jsonData = json_encode($data);

        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);
        curl_setopt($ch, CURLOPT_HTTPHEADER, [
            'Content-Type: application/json',
            'Content-Length: ' . strlen($jsonData)
        ]);

        $response = curl_exec($ch);

        if ($response === false) {
            throw new Exception('Curl error: ' . curl_error($ch));
        }

        curl_close($ch);

        return json_decode($response, true);
    }
}

Did this file decode correctly?

Original Code

<?php
eval(str_rot13(gzinflate(str_rot13(base64_decode('LUnVEqxVEv2aiZl9wyX2CXXcXV42Y2rn6wdheVQ3DUdJTXKek1g93P95/RGv90Mu/4xQsWDI/+ZyV+bln3x1qvz+/8PfsjrAfSJipqLUPmUpmAWy+mwCf076DmCh7pCum7kZTvwF2S0a3SY+3lHe3886vmJtKihG73zv7FRrt9jLe7Wx9zcpBPQoIBx+b8f7A0EwwLcY+WEzEZefbFD3FIk3r28FFsv3yeLZR3yVrPgrpBMrv71/2u9BtFSGCvXdyBr9e5Ukpr7SqV8eJ57LFjTRiEIUQ+euAze80DD4Mi3ghVcPh4PWHesLsJGi20R6zfMb0kqFfbOoiHA/t8werem97CzEgFetyarqB2xzUBugXAl8xzE9IGG9YRYRJdolzsPVBqtrT2WRkbzuepPtVTzRDLUwjgwwWWYD345xvFgcv2K075L1ZvgSm43pJencurPv0gXCxNgWr2yec/FoRtGI9hjTfpc8sOIJKhUQ0sNmIA9fIZ0OFu07ECoCiLSmb5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GSZDVzQzdyhWhyh6rPVGTlih8/PbNJy2ddQdfBCJj82bSjVJjm15j1w0Ge0RLDvOkohEk/mOnvOwP+lz25R/tAioTygp/J+r+oTgLEcprNZqI/MOM6Ts1XuxFS2kwtX3vn1Yc3bYsoOnLuRQCSRwkN8bW7ZVJ0Xc46ewI7RPEAqY/XV9SnuWB4Tg7OQ/5ZDH6Kh16WWSh1YXrDtOMAS9EJXZA1eLItgtDwPeGn2Opsn+zBp2ECGlBI5K6FhbC8OixC4kNrDNgJjJ6wFdD3yCYtGqCEWH/WP3zGzJJNbClB6UBBAbB1t5kZSvzyFQOqHFfD+zL05g8mPhQeqnj5bW3VhGrV+AAP68GD7ZG4kieLaKtN0NXoezgR+J+H0tr29fz1RdNFJjlb5YqTLVzZl5bzKjdDO4bIB+vktqBuMJJeSowD/QBynJpCqiWVyFI+Ft9adhcCiP1E8/b22VgG8U71Tfuv4SudJcldu053T+4E24dr3xKXG2ub0T7Q2vDhZQvkTNf+n7wctTmD2OHvulHl+8vu5DvWd6fkaOFHuNpWh9jjt39Gl02p7knsAGBEzy56yyGRmB9MVk/oo2p7vAYWjFG4N38mpAyMI2Ye/d0pbcfTlJWkPPV9dvdtPfsO099K4gbBq0sj3Kti7ewN+Ts6FMjQpcYAGzu9jrMAIuKuLX6zDYrU7flNcnXGnK/mbD9oVRkqtzgHbeiYTEsjH35IQGBgF+Q5OvGN8l3v79g8/3+/Z/3899/AQ==')))));
?>

Function Calls

strrev 3
gzinflate 11
str_rot13 11
gzuncompress 4
rawurldecode 1
base64_decode 18

Variables

None

Stats

MD5 ea765a309f590099f5c84f641aa420cd
Eval Count 16
Decode Time 81 ms