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 /* __________________________________________________ | Obfuscated by YAK Pro..

Decoded Output download

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2024-04-04 18:41:21              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 namespace MW8z2\F_nAf\TSn_W; class q4HS5 implements \IteratorAggregate, \Countable, \Stringable { protected const IhTpU = "_ABCDEFGHIJKLMNOPQRSTUVWXYZ"; protected const g3s4k = "-abcdefghijklmnopqrstuvwxyz"; protected array $XNes8 = []; protected array $CdmnO = []; public function __construct(array $LStyo = []) { foreach ($LStyo as $yrRBW => $Tpsnc) { $this->i0UTM($yrRBW, $Tpsnc); ht0m5: } avFKO: } public function __toString() : string { goto ENeog; ENeog: if ($LStyo = $this->Vz7AD()) { goto iZKkU; } goto AwrLq; D6GfT: ksort($LStyo); goto DbLX2; AwrLq: return ''; goto ivpX0; ivpX0: iZKkU: goto D6GfT; KNoaj: foreach ($LStyo as $Cz3Ye => $Tpsnc) { goto cl5NT; cl5NT: $Cz3Ye = ucwords($Cz3Ye, "-"); goto l6lKU; QeO0J: fRJnI: goto pKkVS; yWmpH: QcTCp: goto QeO0J; l6lKU: foreach ($Tpsnc as $CHX4K) { $BkwlN .= sprintf("%-{$ctNCv}s %s\xd
", $Cz3Ye . ":", $CHX4K); riLju: } goto yWmpH; pKkVS: } goto I_VeR; orACn: $BkwlN = ''; goto KNoaj; GB7n0: return $BkwlN; goto WsHOs; DbLX2: $ctNCv = max(array_map("strlen", array_keys($LStyo))) + 1; goto orACn; I_VeR: RlAzK: goto GB7n0; WsHOs: } public function Vz7aD(?string $yrRBW = null) : array { goto xg055; xg055: if (!(null !== $yrRBW)) { goto oSMhL; } goto ig68x; RAdnw: return $this->XNes8; goto UELZV; Rw21W: oSMhL: goto RAdnw; ig68x: return $this->XNes8[strtr($yrRBW, self::IhTpU, self::g3s4k)] ?? []; goto Rw21W; UELZV: } public function RZ0l0() : array { return array_keys($this->vz7AD()); } public function Cj2iF(array $LStyo = []) : void { $this->XNes8 = []; $this->add($LStyo); } public function add(array $LStyo) : void { foreach ($LStyo as $yrRBW => $Tpsnc) { $this->i0UTM($yrRBW, $Tpsnc); Q0WG7: } EzetP: } public function get(string $yrRBW, ?string $axibf = null) : ?string { goto KqCKY; pM6TN: return null; goto PuN2Z; PGoGt: if ($LStyo) { goto kTheS; } goto I8Jnd; nGGhA: kTheS: goto Yzv7a; N_iw1: return (string) $LStyo[0]; goto dwA7y; Yzv7a: if (!(null === $LStyo[0])) { goto I12ry; } goto pM6TN; KqCKY: $LStyo = $this->VZ7ad($yrRBW); goto PGoGt; PuN2Z: I12ry: goto N_iw1; I8Jnd: return $axibf; goto nGGhA; dwA7y: } public function i0UTm(string $yrRBW, string|array|null $Tpsnc, bool $CNeGa = true) : void { goto H8lqK; IMrC1: if (!("cache-control" === $yrRBW)) { goto otN9s; } goto GM22w; Zmrwh: $this->XNes8[$yrRBW] = array_merge($this->XNes8[$yrRBW], $Tpsnc); goto O13sD; kKng0: $this->XNes8[$yrRBW][] = $Tpsnc; goto keBxV; sOIgT: $this->XNes8[$yrRBW] = [$Tpsnc]; goto Ej2m0; K3ATF: b2eX9: goto TRL2T; GM22w: $this->CdmnO = $this->Vjj0B(implode(", ", $this->XNes8[$yrRBW])); goto BiBv3; QMBU_: $this->XNes8[$yrRBW] = $Tpsnc; goto K3ATF; keBxV: goto xwXC0; goto E_eRW; mqDRD: if (true === $CNeGa || !isset($this->XNes8[$yrRBW])) { goto CeWQB; } goto Zmrwh; PBTg7: if (true === $CNeGa || !isset($this->XNes8[$yrRBW])) { goto CX2mv; } goto kKng0; AtKqY: goto T1oF1; goto cVFmJ; H8lqK: $yrRBW = strtr($yrRBW, self::IhTpU, self::g3s4k); goto FWZG3; cVFmJ: ZCxIo: goto smjol; kNkKL: CeWQB: goto QMBU_; Ej2m0: xwXC0: goto AtKqY; smjol: $Tpsnc = array_values($Tpsnc); goto mqDRD; FWZG3: if (\is_array($Tpsnc)) { goto ZCxIo; } goto PBTg7; TRL2T: T1oF1: goto IMrC1; E_eRW: CX2mv: goto sOIgT; BiBv3: otN9s: goto KoUd6; O13sD: goto b2eX9; goto kNkKL; KoUd6: } public function M10ek(string $yrRBW) : bool { return \array_key_exists(strtr($yrRBW, self::IhTpU, self::g3s4k), $this->Vz7aD()); } public function contains(string $yrRBW, string $CHX4K) : bool { return \in_array($CHX4K, $this->VZ7Ad($yrRBW)); } public function OWoKX(string $yrRBW) : void { goto HqgzJ; HqgzJ: $yrRBW = strtr($yrRBW, self::IhTpU, self::g3s4k); goto BJ43m; XoH1U: $this->CdmnO = []; goto B1GnQ; BJ43m: unset($this->XNes8[$yrRBW]); goto HN9uj; HN9uj: if (!("cache-control" === $yrRBW)) { goto Kfnhv; } goto XoH1U; B1GnQ: Kfnhv: goto WNpNn; WNpNn: } public function getDate(string $yrRBW, ?\DateTimeInterface $axibf = null) : ?\DateTimeImmutable { goto DBejB; KYYbj: ZzYik: goto U5Tko; XG44k: if (!(false === ($bwPMC = \DateTimeImmutable::createFromFormat(\DATE_RFC2822, $CHX4K)))) { goto ZzYik; } goto hyeqz; U5Tko: return $bwPMC; goto yxDlU; hyeqz: throw new \RuntimeException(sprintf("The "%s" HTTP header is not parseable (%s).", $yrRBW, $CHX4K)); goto KYYbj; U6P1o: return null !== $axibf ? \DateTimeImmutable::createFromInterface($axibf) : null; goto Evclh; DBejB: if (!(null === ($CHX4K = $this->get($yrRBW)))) { goto xVAkX; } goto U6P1o; Evclh: xVAkX: goto XG44k; yxDlU: } public function aWLZL(string $yrRBW, bool|string $CHX4K = true) : void { $this->CdmnO[$yrRBW] = $CHX4K; $this->I0UtM("Cache-Control", $this->gJcov()); } public function ovBRR(string $yrRBW) : bool { return \array_key_exists($yrRBW, $this->CdmnO); } public function IMPzt(string $yrRBW) : bool|string|null { return $this->CdmnO[$yrRBW] ?? null; } public function fVYOh(string $yrRBW) : void { unset($this->CdmnO[$yrRBW]); $this->i0UTm("Cache-Control", $this->gJCOv()); } public function getIterator() : \ArrayIterator { return new \ArrayIterator($this->XNes8); } public function count() : int { return \count($this->XNes8); } protected function GJCov() : string { ksort($this->CdmnO); return mhWuN::Rbcwd($this->CdmnO, ","); } protected function vJj0B(string $FCYBc) : array { $KdPiP = MHWuN::QLMAV($FCYBc, ",="); return mHWun::TOS8b($KdPiP); } } ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2024-04-04 18:41:21              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 namespace MW8z2\F_nAf\TSn_W; class q4HS5 implements \IteratorAggregate, \Countable, \Stringable { protected const IhTpU = "\137\x41\102\x43\x44\105\106\107\110\111\112\x4b\114\x4d\116\117\120\x51\122\x53\x54\125\x56\127\x58\131\132"; protected const g3s4k = "\x2d\x61\x62\x63\x64\145\146\147\x68\x69\x6a\x6b\154\x6d\156\x6f\160\161\162\163\164\x75\x76\x77\170\171\172"; protected array $XNes8 = []; protected array $CdmnO = []; public function __construct(array $LStyo = []) { foreach ($LStyo as $yrRBW => $Tpsnc) { $this->i0UTM($yrRBW, $Tpsnc); ht0m5: } avFKO: } public function __toString() : string { goto ENeog; ENeog: if ($LStyo = $this->Vz7AD()) { goto iZKkU; } goto AwrLq; D6GfT: ksort($LStyo); goto DbLX2; AwrLq: return ''; goto ivpX0; ivpX0: iZKkU: goto D6GfT; KNoaj: foreach ($LStyo as $Cz3Ye => $Tpsnc) { goto cl5NT; cl5NT: $Cz3Ye = ucwords($Cz3Ye, "\x2d"); goto l6lKU; QeO0J: fRJnI: goto pKkVS; yWmpH: QcTCp: goto QeO0J; l6lKU: foreach ($Tpsnc as $CHX4K) { $BkwlN .= sprintf("\45\x2d{$ctNCv}\x73\40\x25\x73\xd\12", $Cz3Ye . "\x3a", $CHX4K); riLju: } goto yWmpH; pKkVS: } goto I_VeR; orACn: $BkwlN = ''; goto KNoaj; GB7n0: return $BkwlN; goto WsHOs; DbLX2: $ctNCv = max(array_map("\163\x74\x72\x6c\145\156", array_keys($LStyo))) + 1; goto orACn; I_VeR: RlAzK: goto GB7n0; WsHOs: } public function Vz7aD(?string $yrRBW = null) : array { goto xg055; xg055: if (!(null !== $yrRBW)) { goto oSMhL; } goto ig68x; RAdnw: return $this->XNes8; goto UELZV; Rw21W: oSMhL: goto RAdnw; ig68x: return $this->XNes8[strtr($yrRBW, self::IhTpU, self::g3s4k)] ?? []; goto Rw21W; UELZV: } public function RZ0l0() : array { return array_keys($this->vz7AD()); } public function Cj2iF(array $LStyo = []) : void { $this->XNes8 = []; $this->add($LStyo); } public function add(array $LStyo) : void { foreach ($LStyo as $yrRBW => $Tpsnc) { $this->i0UTM($yrRBW, $Tpsnc); Q0WG7: } EzetP: } public function get(string $yrRBW, ?string $axibf = null) : ?string { goto KqCKY; pM6TN: return null; goto PuN2Z; PGoGt: if ($LStyo) { goto kTheS; } goto I8Jnd; nGGhA: kTheS: goto Yzv7a; N_iw1: return (string) $LStyo[0]; goto dwA7y; Yzv7a: if (!(null === $LStyo[0])) { goto I12ry; } goto pM6TN; KqCKY: $LStyo = $this->VZ7ad($yrRBW); goto PGoGt; PuN2Z: I12ry: goto N_iw1; I8Jnd: return $axibf; goto nGGhA; dwA7y: } public function i0UTm(string $yrRBW, string|array|null $Tpsnc, bool $CNeGa = true) : void { goto H8lqK; IMrC1: if (!("\x63\141\x63\x68\145\x2d\x63\x6f\156\164\162\157\x6c" === $yrRBW)) { goto otN9s; } goto GM22w; Zmrwh: $this->XNes8[$yrRBW] = array_merge($this->XNes8[$yrRBW], $Tpsnc); goto O13sD; kKng0: $this->XNes8[$yrRBW][] = $Tpsnc; goto keBxV; sOIgT: $this->XNes8[$yrRBW] = [$Tpsnc]; goto Ej2m0; K3ATF: b2eX9: goto TRL2T; GM22w: $this->CdmnO = $this->Vjj0B(implode("\54\x20", $this->XNes8[$yrRBW])); goto BiBv3; QMBU_: $this->XNes8[$yrRBW] = $Tpsnc; goto K3ATF; keBxV: goto xwXC0; goto E_eRW; mqDRD: if (true === $CNeGa || !isset($this->XNes8[$yrRBW])) { goto CeWQB; } goto Zmrwh; PBTg7: if (true === $CNeGa || !isset($this->XNes8[$yrRBW])) { goto CX2mv; } goto kKng0; AtKqY: goto T1oF1; goto cVFmJ; H8lqK: $yrRBW = strtr($yrRBW, self::IhTpU, self::g3s4k); goto FWZG3; cVFmJ: ZCxIo: goto smjol; kNkKL: CeWQB: goto QMBU_; Ej2m0: xwXC0: goto AtKqY; smjol: $Tpsnc = array_values($Tpsnc); goto mqDRD; FWZG3: if (\is_array($Tpsnc)) { goto ZCxIo; } goto PBTg7; TRL2T: T1oF1: goto IMrC1; E_eRW: CX2mv: goto sOIgT; BiBv3: otN9s: goto KoUd6; O13sD: goto b2eX9; goto kNkKL; KoUd6: } public function M10ek(string $yrRBW) : bool { return \array_key_exists(strtr($yrRBW, self::IhTpU, self::g3s4k), $this->Vz7aD()); } public function contains(string $yrRBW, string $CHX4K) : bool { return \in_array($CHX4K, $this->VZ7Ad($yrRBW)); } public function OWoKX(string $yrRBW) : void { goto HqgzJ; HqgzJ: $yrRBW = strtr($yrRBW, self::IhTpU, self::g3s4k); goto BJ43m; XoH1U: $this->CdmnO = []; goto B1GnQ; BJ43m: unset($this->XNes8[$yrRBW]); goto HN9uj; HN9uj: if (!("\x63\141\x63\x68\145\55\143\157\x6e\x74\x72\157\x6c" === $yrRBW)) { goto Kfnhv; } goto XoH1U; B1GnQ: Kfnhv: goto WNpNn; WNpNn: } public function getDate(string $yrRBW, ?\DateTimeInterface $axibf = null) : ?\DateTimeImmutable { goto DBejB; KYYbj: ZzYik: goto U5Tko; XG44k: if (!(false === ($bwPMC = \DateTimeImmutable::createFromFormat(\DATE_RFC2822, $CHX4K)))) { goto ZzYik; } goto hyeqz; U5Tko: return $bwPMC; goto yxDlU; hyeqz: throw new \RuntimeException(sprintf("\124\150\x65\40\42\x25\x73\42\40\110\124\x54\x50\40\x68\145\141\x64\145\162\40\x69\163\40\x6e\x6f\164\x20\160\x61\162\163\145\x61\142\154\145\x20\50\x25\x73\x29\56", $yrRBW, $CHX4K)); goto KYYbj; U6P1o: return null !== $axibf ? \DateTimeImmutable::createFromInterface($axibf) : null; goto Evclh; DBejB: if (!(null === ($CHX4K = $this->get($yrRBW)))) { goto xVAkX; } goto U6P1o; Evclh: xVAkX: goto XG44k; yxDlU: } public function aWLZL(string $yrRBW, bool|string $CHX4K = true) : void { $this->CdmnO[$yrRBW] = $CHX4K; $this->I0UtM("\103\x61\x63\150\145\55\x43\x6f\156\x74\x72\157\154", $this->gJcov()); } public function ovBRR(string $yrRBW) : bool { return \array_key_exists($yrRBW, $this->CdmnO); } public function IMPzt(string $yrRBW) : bool|string|null { return $this->CdmnO[$yrRBW] ?? null; } public function fVYOh(string $yrRBW) : void { unset($this->CdmnO[$yrRBW]); $this->i0UTm("\x43\141\x63\150\x65\55\x43\x6f\156\164\x72\157\x6c", $this->gJCOv()); } public function getIterator() : \ArrayIterator { return new \ArrayIterator($this->XNes8); } public function count() : int { return \count($this->XNes8); } protected function GJCov() : string { ksort($this->CdmnO); return mhWuN::Rbcwd($this->CdmnO, "\54"); } protected function vJj0B(string $FCYBc) : array { $KdPiP = MHWuN::QLMAV($FCYBc, "\x2c\75"); return mHWun::TOS8b($KdPiP); } }

Function Calls

None

Variables

None

Stats

MD5 7ed49205f948761962463c5431e21a5e
Eval Count 0
Decode Time 107 ms