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 namespace App\CloudPanel\Do; use App\CloudPanel\Instance as BaseInstance; use..

Decoded Output download

<?php 
 
namespace App\CloudPanel\Do; 
 
use App\CloudPanel\Instance as BaseInstance; 
use App\Do\Client as DoClient; 
 
class Instance extends BaseInstance 
{ 
    private ?string $dropletId = null; 
    private ?DoClient $doClient = null; 
    private ?string $regionName = null; 
    private ?string $floatingIp = null; 
 
    public function __construct(DoClient $doClient) 
    { 
        parent::__construct(); 
        $this->doClient = $doClient; 
    } 
 
    public function getRegion(): string 
    { 
        goto F7959; 
        d5398: 
        $this->region = $this->doClient->getMetaDataValue("region"); 
        goto d7e0d; 
        d7e0d: b4513: 
        goto Eeeb6; 
        Eeeb6: 
        return $this->region; 
        goto e44f7; 
        F7959: 
        if (!(true === is_null($this->region))) { 
            goto b4513; 
        } 
        goto d5398; 
        e44f7: 
    } 
 
    public function setRegionName(string $regionName): void 
    { 
        $this->regionName = $regionName; 
    } 
 
    public function getRegionName(): string 
    { 
        goto c1a1e; 
        c0c48: 
        $droplet = $this->doClient->getDroplet(); 
        goto F6439; 
        c1a1e: 
        if (!(true === is_null($this->regionName))) { 
            goto d0cb9; 
        } 
        goto c0c48; 
        E57a5: 
        return $this->regionName; 
        goto c025c; 
        c0a9b: d0cb9: 
        goto E57a5; 
        F6439: 
        $this->regionName = $droplet->getRegionName(); 
        goto c0a9b; 
        c025c: 
    } 
 
    public function setDropletId(string $dropletId): void 
    { 
        $this->dropletId = $dropletId; 
    } 
 
    public function getDropletId(): ?string 
    { 
        goto e946b; 
        eba8d: 
        return $this->dropletId; 
        goto b7de3; 
        e946b: 
        if (!(true === is_null($this->dropletId))) { 
            goto A433e; 
        } 
        goto c5cbb; 
        E877f: A433e: 
        goto eba8d; 
        c5cbb: 
        $this->dropletId = $this->doClient->getMetaDataValue("id"); 
        goto E877f; 
        b7de3: 
    } 
 
    public function setFloatingIp(string $floatingIp): void 
    { 
        $this->floatingIp = $floatingIp; 
    } 
 
    public function getFloatingIp(): string 
    { 
        goto Fad1b; 
        b4457: b4478: 
        goto f681d; 
        b248a: 
        $this->floatingIp = $this->doClient->getMetaDataValue("floating_ip/ipv4/ip_address"); 
        goto b4457; 
        f681d: 
        return $this->floatingIp; 
        goto Fdcb0; 
        Fad1b: 
        if (!(true === is_null($this->floatingIp))) { 
            goto b4478; 
        } 
        goto b248a; 
        Fdcb0: 
    } 
 
    public function setIpv4PublicIp(string $ipv4PublicIp): void 
    { 
        $this->ipv4PublicIp = $ipv4PublicIp; 
    } 
 
    public function getIpv4PublicIp(): ?string 
    { 
        goto Ce585; 
        D367c: Cbdc1: 
        goto Cab3b; 
        e0a99: 
        $this->ipv4PublicIp = $this->doClient->getMetaDataValue("interfaces/public/0/ipv4/address"); 
        goto D367c; 
        Cab3b: 
        return $this->ipv4PublicIp; 
        goto a3b84; 
        Ce585: 
        if (!(true === is_null($this->ipv4PublicIp))) { 
            goto Cbdc1; 
        } 
        goto e0a99; 
        a3b84: 
    } 
 
    public function getDoClient(): ?DoClient 
    { 
        return $this->doClient; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\CloudPanel\Do;

use App\CloudPanel\Instance as BaseInstance;
use App\Do\Client as DoClient;

class Instance extends BaseInstance
{
    private ?string $dropletId = null;
    private ?DoClient $doClient = null;
    private ?string $regionName = null;
    private ?string $floatingIp = null;

    public function __construct(DoClient $doClient)
    {
        parent::__construct();
        $this->doClient = $doClient;
    }

    public function getRegion(): string
    {
        goto F7959;
        d5398:
        $this->region = $this->doClient->getMetaDataValue("\162\x65\147\151\157\x6e");
        goto d7e0d;
        d7e0d: b4513:
        goto Eeeb6;
        Eeeb6:
        return $this->region;
        goto e44f7;
        F7959:
        if (!(true === is_null($this->region))) {
            goto b4513;
        }
        goto d5398;
        e44f7:
    }

    public function setRegionName(string $regionName): void
    {
        $this->regionName = $regionName;
    }

    public function getRegionName(): string
    {
        goto c1a1e;
        c0c48:
        $droplet = $this->doClient->getDroplet();
        goto F6439;
        c1a1e:
        if (!(true === is_null($this->regionName))) {
            goto d0cb9;
        }
        goto c0c48;
        E57a5:
        return $this->regionName;
        goto c025c;
        c0a9b: d0cb9:
        goto E57a5;
        F6439:
        $this->regionName = $droplet->getRegionName();
        goto c0a9b;
        c025c:
    }

    public function setDropletId(string $dropletId): void
    {
        $this->dropletId = $dropletId;
    }

    public function getDropletId(): ?string
    {
        goto e946b;
        eba8d:
        return $this->dropletId;
        goto b7de3;
        e946b:
        if (!(true === is_null($this->dropletId))) {
            goto A433e;
        }
        goto c5cbb;
        E877f: A433e:
        goto eba8d;
        c5cbb:
        $this->dropletId = $this->doClient->getMetaDataValue("\151\144");
        goto E877f;
        b7de3:
    }

    public function setFloatingIp(string $floatingIp): void
    {
        $this->floatingIp = $floatingIp;
    }

    public function getFloatingIp(): string
    {
        goto Fad1b;
        b4457: b4478:
        goto f681d;
        b248a:
        $this->floatingIp = $this->doClient->getMetaDataValue("\x66\154\157\x61\164\151\x6e\x67\137\x69\160\57\x69\160\166\64\x2f\x69\160\x5f\141\x64\144\x72\x65\163\x73");
        goto b4457;
        f681d:
        return $this->floatingIp;
        goto Fdcb0;
        Fad1b:
        if (!(true === is_null($this->floatingIp))) {
            goto b4478;
        }
        goto b248a;
        Fdcb0:
    }

    public function setIpv4PublicIp(string $ipv4PublicIp): void
    {
        $this->ipv4PublicIp = $ipv4PublicIp;
    }

    public function getIpv4PublicIp(): ?string
    {
        goto Ce585;
        D367c: Cbdc1:
        goto Cab3b;
        e0a99:
        $this->ipv4PublicIp = $this->doClient->getMetaDataValue("\x69\156\x74\x65\162\x66\141\x63\145\163\57\160\x75\142\154\151\x63\57\x30\x2f\151\x70\x76\64\57\141\144\144\162\145\163\163");
        goto D367c;
        Cab3b:
        return $this->ipv4PublicIp;
        goto a3b84;
        Ce585:
        if (!(true === is_null($this->ipv4PublicIp))) {
            goto Cbdc1;
        }
        goto e0a99;
        a3b84:
    }

    public function getDoClient(): ?DoClient
    {
        return $this->doClient;
    }
}

Function Calls

None

Variables

None

Stats

MD5 c0c0ad36a7aaad13821e8d00d4d5681c
Eval Count 0
Decode Time 57 ms