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:50:07              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 namespace G3aAd\mwL8z\ESD1e; use g3aaD\MwL8Z\EsD1E\Exception\WHHjB; use G3AAD\MwL8z\esd1E\Exception\UnexpectedValueException; class D6_dv implements \IteratorAggregate, \Countable { protected array $U9bdy; public function __construct(array $rmqZE = []) { $this->U9bdy = $rmqZE; } public function BkRAV(?string $vA24R = null) : array { goto vpsme; l4x6r: k7TkR: goto lubvF; tJMUU: return $this->U9bdy; goto u0_5P; u0_5P: oSzI6: goto MxyDU; lubvF: return $E3uRs; goto VdG_5; MxyDU: if (\is_array($E3uRs = $this->U9bdy[$vA24R] ?? [])) { goto k7TkR; } goto finPY; vpsme: if (!(null === $vA24R)) { goto oSzI6; } goto tJMUU; finPY: throw new whHJb(sprintf("Unexpected value for parameter "%s": expecting "array", got "%s".", $vA24R, get_debug_type($E3uRs))); goto l4x6r; VdG_5: } public function KI159() : array { return array_keys($this->U9bdy); } public function WBwLe(array $rmqZE = []) : void { $this->U9bdy = $rmqZE; } public function add(array $rmqZE = []) : void { $this->U9bdy = array_replace($this->U9bdy, $rmqZE); } public function get(string $vA24R, mixed $Ih39O = null) : mixed { return \array_key_exists($vA24R, $this->U9bdy) ? $this->U9bdy[$vA24R] : $Ih39O; } public function BqsOt(string $vA24R, mixed $E3uRs) : void { $this->U9bdy[$vA24R] = $E3uRs; } public function REC6h(string $vA24R) : bool { return \array_key_exists($vA24R, $this->U9bdy); } public function x_1t8(string $vA24R) : void { unset($this->U9bdy[$vA24R]); } public function QuOWa(string $vA24R, string $Ih39O = '') : string { return preg_replace("/[^[:alpha:]]/", '', $this->aYoIM($vA24R, $Ih39O)); } public function hcbVj(string $vA24R, string $Ih39O = '') : string { return preg_replace("/[^[:alnum:]]/", '', $this->AYOiM($vA24R, $Ih39O)); } public function pwwAk(string $vA24R, string $Ih39O = '') : string { return preg_replace("/[^[:digit:]]/", '', $this->AYoIm($vA24R, $Ih39O)); } public function AYOim(string $vA24R, string $Ih39O = '') : string { goto QNqsI; G8U5W: eL6f3: goto aZfMI; QNqsI: $E3uRs = $this->get($vA24R, $Ih39O); goto LbjAL; LbjAL: if (!(!\is_scalar($E3uRs) && !$E3uRs instanceof \Stringable)) { goto eL6f3; } goto XsKr9; aZfMI: return (string) $E3uRs; goto J4MgP; XsKr9: throw new UnexpectedValueException(sprintf("Parameter value "%s" cannot be converted to "string".", $vA24R)); goto G8U5W; J4MgP: } public function getInt(string $vA24R, int $Ih39O = 0) : int { return $this->filter($vA24R, $Ih39O, \FILTER_VALIDATE_INT, ["flags" => \FILTER_REQUIRE_SCALAR]); } public function uRTbi(string $vA24R, bool $Ih39O = false) : bool { return $this->filter($vA24R, $Ih39O, \FILTER_VALIDATE_BOOL, ["flags" => \FILTER_REQUIRE_SCALAR]); } public function getEnum(string $vA24R, string $pIVqe, ?\BackedEnum $Ih39O = null) : ?\BackedEnum { goto ezKkh; ezKkh: $E3uRs = $this->get($vA24R); goto TUXXh; OBFGJ: try { return $pIVqe::from($E3uRs); } catch (\ValueError|\TypeError $JMvAK) { throw new UnexpectedValueException(sprintf("Parameter "%s" cannot be converted to enum: %s.", $vA24R, $JMvAK->getMessage()), $JMvAK->getCode(), $JMvAK); } goto CPjbM; TUXXh: if (!(null === $E3uRs)) { goto p09IR; } goto kuAnG; kuAnG: return $Ih39O; goto UbC5l; UbC5l: p09IR: goto OBFGJ; CPjbM: } public function filter(string $vA24R, mixed $Ih39O = null, int $Ap8rr = \FILTER_DEFAULT, mixed $Cew2O = []) : mixed { goto wbvmx; afu2T: throw new \UnexpectedValueException(sprintf("Parameter value "%s" is invalid and flag "FILTER_NULL_ON_FAILURE" was not set.", $vA24R)); goto ItWC1; EBS2c: if (!(null !== $E3uRs || $gDaAe)) { goto imQB3; } goto g_jvf; xaBiW: x446B: goto EiqMr; zEu5G: $Cew2O["flags"] |= \FILTER_NULL_ON_FAILURE; goto MgUEl; pSAf0: ORuPr: goto qBX3e; rjcH7: throw new UnexpectedValueException(sprintf("Parameter value "%s" cannot be filtered.", $vA24R)); goto ON1pP; wbvmx: $E3uRs = $this->get($vA24R, $Ih39O); goto kNf7_; rmISF: $Cew2O = ["flags" => $Cew2O]; goto xaBiW; MgUEl: $E3uRs = filter_var($E3uRs, $Ap8rr, $Cew2O); goto EBS2c; ON1pP: QYxAN: goto LNFzn; g_jvf: return $E3uRs; goto DlKZs; KgMWk: $gDaAe = $Cew2O["flags"] & \FILTER_NULL_ON_FAILURE; goto zEu5G; kjMom: wIHVW: goto zRC5D; sUhNV: throw new \InvalidArgumentException(sprintf("A Closure must be passed to "%s()" when FILTER_CALLBACK is used, "%s" given.", __METHOD__, get_debug_type($Cew2O["options"] ?? null))); goto kjMom; kNf7_: if (!(!\is_array($Cew2O) && $Cew2O)) { goto x446B; } goto rmISF; DlKZs: imQB3: goto afu2T; LNFzn: if (!(\FILTER_CALLBACK & $Ap8rr && !($Cew2O["options"] ?? null) instanceof \Closure)) { goto wIHVW; } goto sUhNV; zRC5D: $Cew2O["flags"] ??= 0; goto KgMWk; CRKfw: $Cew2O["flags"] = \FILTER_REQUIRE_ARRAY; goto pSAf0; qBX3e: if (!(\is_object($E3uRs) && !$E3uRs instanceof \Stringable)) { goto QYxAN; } goto rjcH7; EiqMr: if (!(\is_array($E3uRs) && !isset($Cew2O["flags"]))) { goto ORuPr; } goto CRKfw; ItWC1: } public function getIterator() : \ArrayIterator { return new \ArrayIterator($this->U9bdy); } public function count() : int { return \count($this->U9bdy); } } ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2024-04-04 18:50:07              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 namespace G3aAd\mwL8z\ESD1e; use g3aaD\MwL8Z\EsD1E\Exception\WHHjB; use G3AAD\MwL8z\esd1E\Exception\UnexpectedValueException; class D6_dv implements \IteratorAggregate, \Countable { protected array $U9bdy; public function __construct(array $rmqZE = []) { $this->U9bdy = $rmqZE; } public function BkRAV(?string $vA24R = null) : array { goto vpsme; l4x6r: k7TkR: goto lubvF; tJMUU: return $this->U9bdy; goto u0_5P; u0_5P: oSzI6: goto MxyDU; lubvF: return $E3uRs; goto VdG_5; MxyDU: if (\is_array($E3uRs = $this->U9bdy[$vA24R] ?? [])) { goto k7TkR; } goto finPY; vpsme: if (!(null === $vA24R)) { goto oSzI6; } goto tJMUU; finPY: throw new whHJb(sprintf("\x55\x6e\145\170\x70\x65\x63\164\145\x64\40\x76\141\x6c\x75\x65\x20\146\157\x72\x20\160\x61\x72\x61\x6d\145\164\x65\162\x20\42\x25\x73\x22\72\40\145\170\160\145\143\x74\x69\156\147\x20\42\141\x72\162\x61\171\x22\x2c\x20\x67\x6f\164\x20\x22\x25\x73\x22\56", $vA24R, get_debug_type($E3uRs))); goto l4x6r; VdG_5: } public function KI159() : array { return array_keys($this->U9bdy); } public function WBwLe(array $rmqZE = []) : void { $this->U9bdy = $rmqZE; } public function add(array $rmqZE = []) : void { $this->U9bdy = array_replace($this->U9bdy, $rmqZE); } public function get(string $vA24R, mixed $Ih39O = null) : mixed { return \array_key_exists($vA24R, $this->U9bdy) ? $this->U9bdy[$vA24R] : $Ih39O; } public function BqsOt(string $vA24R, mixed $E3uRs) : void { $this->U9bdy[$vA24R] = $E3uRs; } public function REC6h(string $vA24R) : bool { return \array_key_exists($vA24R, $this->U9bdy); } public function x_1t8(string $vA24R) : void { unset($this->U9bdy[$vA24R]); } public function QuOWa(string $vA24R, string $Ih39O = '') : string { return preg_replace("\x2f\133\x5e\133\72\x61\154\x70\150\x61\x3a\135\135\57", '', $this->aYoIM($vA24R, $Ih39O)); } public function hcbVj(string $vA24R, string $Ih39O = '') : string { return preg_replace("\x2f\x5b\136\133\x3a\141\x6c\x6e\165\155\72\135\135\x2f", '', $this->AYOiM($vA24R, $Ih39O)); } public function pwwAk(string $vA24R, string $Ih39O = '') : string { return preg_replace("\57\133\x5e\x5b\72\144\x69\x67\x69\164\72\135\135\57", '', $this->AYoIm($vA24R, $Ih39O)); } public function AYOim(string $vA24R, string $Ih39O = '') : string { goto QNqsI; G8U5W: eL6f3: goto aZfMI; QNqsI: $E3uRs = $this->get($vA24R, $Ih39O); goto LbjAL; LbjAL: if (!(!\is_scalar($E3uRs) && !$E3uRs instanceof \Stringable)) { goto eL6f3; } goto XsKr9; aZfMI: return (string) $E3uRs; goto J4MgP; XsKr9: throw new UnexpectedValueException(sprintf("\x50\x61\x72\141\x6d\145\x74\145\x72\40\x76\141\x6c\x75\x65\x20\x22\x25\163\42\x20\143\141\x6e\x6e\x6f\x74\x20\142\145\x20\x63\x6f\156\166\145\x72\164\145\x64\x20\x74\x6f\x20\42\x73\164\x72\x69\x6e\147\x22\56", $vA24R)); goto G8U5W; J4MgP: } public function getInt(string $vA24R, int $Ih39O = 0) : int { return $this->filter($vA24R, $Ih39O, \FILTER_VALIDATE_INT, ["\146\x6c\x61\x67\x73" => \FILTER_REQUIRE_SCALAR]); } public function uRTbi(string $vA24R, bool $Ih39O = false) : bool { return $this->filter($vA24R, $Ih39O, \FILTER_VALIDATE_BOOL, ["\x66\154\x61\147\163" => \FILTER_REQUIRE_SCALAR]); } public function getEnum(string $vA24R, string $pIVqe, ?\BackedEnum $Ih39O = null) : ?\BackedEnum { goto ezKkh; ezKkh: $E3uRs = $this->get($vA24R); goto TUXXh; OBFGJ: try { return $pIVqe::from($E3uRs); } catch (\ValueError|\TypeError $JMvAK) { throw new UnexpectedValueException(sprintf("\120\x61\162\141\x6d\145\x74\145\x72\x20\42\45\163\42\x20\143\141\x6e\156\157\x74\40\x62\145\40\x63\x6f\x6e\166\x65\x72\164\145\x64\40\164\x6f\x20\145\x6e\165\155\x3a\40\x25\x73\56", $vA24R, $JMvAK->getMessage()), $JMvAK->getCode(), $JMvAK); } goto CPjbM; TUXXh: if (!(null === $E3uRs)) { goto p09IR; } goto kuAnG; kuAnG: return $Ih39O; goto UbC5l; UbC5l: p09IR: goto OBFGJ; CPjbM: } public function filter(string $vA24R, mixed $Ih39O = null, int $Ap8rr = \FILTER_DEFAULT, mixed $Cew2O = []) : mixed { goto wbvmx; afu2T: throw new \UnexpectedValueException(sprintf("\x50\x61\162\x61\155\x65\164\x65\x72\x20\x76\x61\154\x75\x65\x20\42\x25\163\x22\x20\151\x73\40\151\x6e\166\x61\154\x69\x64\x20\141\156\x64\x20\x66\154\x61\147\x20\x22\106\111\x4c\124\x45\x52\137\116\x55\114\x4c\x5f\117\x4e\137\x46\101\x49\114\x55\x52\x45\42\x20\x77\141\163\40\x6e\157\x74\x20\163\145\x74\56", $vA24R)); goto ItWC1; EBS2c: if (!(null !== $E3uRs || $gDaAe)) { goto imQB3; } goto g_jvf; xaBiW: x446B: goto EiqMr; zEu5G: $Cew2O["\146\x6c\141\x67\163"] |= \FILTER_NULL_ON_FAILURE; goto MgUEl; pSAf0: ORuPr: goto qBX3e; rjcH7: throw new UnexpectedValueException(sprintf("\x50\141\x72\x61\155\145\x74\x65\x72\x20\x76\141\x6c\x75\x65\x20\42\45\x73\x22\40\143\x61\x6e\x6e\x6f\x74\x20\142\145\x20\146\151\x6c\x74\145\x72\145\x64\56", $vA24R)); goto ON1pP; wbvmx: $E3uRs = $this->get($vA24R, $Ih39O); goto kNf7_; rmISF: $Cew2O = ["\146\154\141\x67\163" => $Cew2O]; goto xaBiW; MgUEl: $E3uRs = filter_var($E3uRs, $Ap8rr, $Cew2O); goto EBS2c; ON1pP: QYxAN: goto LNFzn; g_jvf: return $E3uRs; goto DlKZs; KgMWk: $gDaAe = $Cew2O["\x66\x6c\141\x67\x73"] & \FILTER_NULL_ON_FAILURE; goto zEu5G; kjMom: wIHVW: goto zRC5D; sUhNV: throw new \InvalidArgumentException(sprintf("\101\x20\103\154\157\163\x75\162\x65\x20\x6d\x75\163\x74\x20\x62\x65\x20\x70\141\163\x73\x65\144\x20\164\157\x20\42\x25\163\x28\51\42\x20\167\x68\145\156\x20\x46\111\x4c\124\105\x52\137\x43\101\114\x4c\102\101\103\113\x20\x69\163\x20\x75\163\145\x64\54\x20\x22\45\163\42\x20\147\x69\166\145\x6e\56", __METHOD__, get_debug_type($Cew2O["\157\160\x74\x69\x6f\156\163"] ?? null))); goto kjMom; kNf7_: if (!(!\is_array($Cew2O) && $Cew2O)) { goto x446B; } goto rmISF; DlKZs: imQB3: goto afu2T; LNFzn: if (!(\FILTER_CALLBACK & $Ap8rr && !($Cew2O["\157\160\164\151\157\156\x73"] ?? null) instanceof \Closure)) { goto wIHVW; } goto sUhNV; zRC5D: $Cew2O["\146\154\x61\147\163"] ??= 0; goto KgMWk; CRKfw: $Cew2O["\x66\154\x61\147\163"] = \FILTER_REQUIRE_ARRAY; goto pSAf0; qBX3e: if (!(\is_object($E3uRs) && !$E3uRs instanceof \Stringable)) { goto QYxAN; } goto rjcH7; EiqMr: if (!(\is_array($E3uRs) && !isset($Cew2O["\146\x6c\141\x67\163"]))) { goto ORuPr; } goto CRKfw; ItWC1: } public function getIterator() : \ArrayIterator { return new \ArrayIterator($this->U9bdy); } public function count() : int { return \count($this->U9bdy); } }

Function Calls

None

Variables

None

Stats

MD5 d41729ab9819e8c5915154ab58544627
Eval Count 0
Decode Time 102 ms