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\Site\PhpFpm; class PoolParser { private string $file; private ?Pool ..

Decoded Output download

<?php 
 namespace App\Site\PhpFpm; class PoolParser { private string $file; private ?Pool $pool = null; private array $data = []; public function __construct(string $file) { $this->file = $file; } public function parse() : ?Pool { goto ec415; F8405: f5fab: goto bd3aa; ec415: $fileContent = ile_get_contents($this->file); goto E5b36; e7301: $firstLine = trim(array_shift($lines)); goto f706c; b3962: $pool = new Pool(); goto A70b7; B668a: $port = (int) $listenValue[1]; goto Ca234; Fd81a: foreach ($lines as $line) { goto bb9e5; bb9e5: $line = array_map("trim", explode("=", $line)); goto F95a3; e4928: F67fd: goto a2091; b8704: d8f2a: goto e4928; F95a3: if (!(true === isset($line[0]) && true === isset($line[1]))) { goto d8f2a; } goto afd3d; afd3d: $this->set($line[0], $line[1]); goto b8704; a2091: } goto F8405; D340f: $pool->setPort($port); goto E292d; C5ffb: af68d: goto dd0c8; b974d: $pool->setGroup($group); goto b1717; Fff31: $group = $this->get("group"); goto b3962; dbe11: Caa32: goto C5ffb; bd3aa: $listenValue = $this->get("listen"); goto E4031; dd0c8: return null; goto Ee09c; E4031: $listenValue = explode(":", $listenValue); goto D59ff; D59ff: if (!(true === is_array($listenValue) && true === isset($listenValue[0]) && true === isset($listenValue[1]))) { goto d1b85; } goto B668a; a0875: if (!(false === empty($name))) { goto a7429; } goto Fd81a; E286d: d1b85: goto A71d9; A4473: $lines = explode(PHP_EOL, $fileContent); goto C3f55; E292d: $pool->setUser($user); goto b974d; A71d9: a7429: goto dbe11; E5b36: if (!(false === empty($fileContent))) { goto af68d; } goto A4473; A70b7: $pool->setName($name); goto D340f; f706c: $name = substr($firstLine, 1, -1); goto a0875; C3f55: if (!(true === is_array($lines) && count($lines))) { goto Caa32; } goto e7301; b1717: return $pool; goto E286d; Ca234: $user = $this->get("user"); goto Fff31; Ee09c: } public function set(string $key, string $value) : void { $this->data[$key] = $value; } public function get(string $key) : ?string { $value = $this->data[$key] ?? null; return $value; } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Site\PhpFpm; class PoolParser { private string $file; private ?Pool $pool = null; private array $data = []; public function __construct(string $file) { $this->file = $file; } public function parse() : ?Pool { goto ec415; F8405: f5fab: goto bd3aa; ec415: $fileContent = \file_get_contents($this->file); goto E5b36; e7301: $firstLine = trim(array_shift($lines)); goto f706c; b3962: $pool = new Pool(); goto A70b7; B668a: $port = (int) $listenValue[1]; goto Ca234; Fd81a: foreach ($lines as $line) { goto bb9e5; bb9e5: $line = array_map("\x74\162\x69\155", explode("\75", $line)); goto F95a3; e4928: F67fd: goto a2091; b8704: d8f2a: goto e4928; F95a3: if (!(true === isset($line[0]) && true === isset($line[1]))) { goto d8f2a; } goto afd3d; afd3d: $this->set($line[0], $line[1]); goto b8704; a2091: } goto F8405; D340f: $pool->setPort($port); goto E292d; C5ffb: af68d: goto dd0c8; b974d: $pool->setGroup($group); goto b1717; Fff31: $group = $this->get("\147\x72\x6f\x75\x70"); goto b3962; dbe11: Caa32: goto C5ffb; bd3aa: $listenValue = $this->get("\154\x69\x73\x74\145\x6e"); goto E4031; dd0c8: return null; goto Ee09c; E4031: $listenValue = explode("\72", $listenValue); goto D59ff; D59ff: if (!(true === is_array($listenValue) && true === isset($listenValue[0]) && true === isset($listenValue[1]))) { goto d1b85; } goto B668a; a0875: if (!(false === empty($name))) { goto a7429; } goto Fd81a; E286d: d1b85: goto A71d9; A4473: $lines = explode(PHP_EOL, $fileContent); goto C3f55; E292d: $pool->setUser($user); goto b974d; A71d9: a7429: goto dbe11; E5b36: if (!(false === empty($fileContent))) { goto af68d; } goto A4473; A70b7: $pool->setName($name); goto D340f; f706c: $name = substr($firstLine, 1, -1); goto a0875; C3f55: if (!(true === is_array($lines) && count($lines))) { goto Caa32; } goto e7301; b1717: return $pool; goto E286d; Ca234: $user = $this->get("\165\x73\x65\162"); goto Fff31; Ee09c: } public function set(string $key, string $value) : void { $this->data[$key] = $value; } public function get(string $key) : ?string { $value = $this->data[$key] ?? null; return $value; } }

Function Calls

None

Variables

None

Stats

MD5 f5fc6a9fd492fcea37ceb83b9a8836d4
Eval Count 0
Decode Time 37 ms