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\System; class CommandExecutor { public function execute(Command $com..

Decoded Output download

<?php 
 namespace App\System; class CommandExecutor { public function execute(Command $command, $timeout = 30) : void { try { goto c2b44; aeea1: $process->setCommand($command); goto C3c83; e0133: $process->run(); goto c6bae; Cb18c: $process->start(); goto c3f27; c6bae: if (!(false === $process->isSuccessful())) { goto Acf91; } goto cf6a5; ce2f4: d3fa5: goto Cb18c; c3f27: C7530: goto ba4f0; c2b44: $runInBackground = $command->runInBackground(); goto Aaa2e; cf6a5: throw new \RuntimeException($process->getErrorOutput()); goto fb90a; C3c83: if (true === $runInBackground) { goto d3fa5; } goto A8bad; Aaa2e: $process = Process::fromShellCommandline($command->getCommand(), "/tmp/"); goto aeea1; fb90a: Acf91: goto f73ea; f73ea: goto C7530; goto ce2f4; A8bad: $process->setTimeout($timeout); goto e0133; ba4f0: } catch (\Exception $e) { goto Ca905; B09b4: $errorMessage = sprintf("Command "%s : %s" failed, error message: %s", $command->getName(), $fullCommand, $e->getMessage()); goto c41c7; c41c7: throw new \Exception($errorMessage); goto ff467; Ca905: $fullCommand = $command->getCommand(); goto B09b4; ff467: } } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\System; class CommandExecutor { public function execute(Command $command, $timeout = 30) : void { try { goto c2b44; aeea1: $process->setCommand($command); goto C3c83; e0133: $process->run(); goto c6bae; Cb18c: $process->start(); goto c3f27; c6bae: if (!(false === $process->isSuccessful())) { goto Acf91; } goto cf6a5; ce2f4: d3fa5: goto Cb18c; c3f27: C7530: goto ba4f0; c2b44: $runInBackground = $command->runInBackground(); goto Aaa2e; cf6a5: throw new \RuntimeException($process->getErrorOutput()); goto fb90a; C3c83: if (true === $runInBackground) { goto d3fa5; } goto A8bad; Aaa2e: $process = Process::fromShellCommandline($command->getCommand(), "\57\164\155\160\57"); goto aeea1; fb90a: Acf91: goto f73ea; f73ea: goto C7530; goto ce2f4; A8bad: $process->setTimeout($timeout); goto e0133; ba4f0: } catch (\Exception $e) { goto Ca905; B09b4: $errorMessage = sprintf("\x43\x6f\x6d\x6d\x61\156\x64\x20\x22\x25\163\40\x3a\x20\45\163\42\40\146\141\x69\x6c\x65\x64\x2c\40\145\162\162\157\x72\40\x6d\x65\x73\163\x61\x67\145\72\40\45\x73", $command->getName(), $fullCommand, $e->getMessage()); goto c41c7; c41c7: throw new \Exception($errorMessage); goto ff467; Ca905: $fullCommand = $command->getCommand(); goto B09b4; ff467: } } }

Function Calls

None

Variables

None

Stats

MD5 8a6fa878d37d46cbb49266b52a68b52e
Eval Count 0
Decode Time 64 ms