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 /** * This file is part of the reliforp/reli-prof package. * * (c) sji <sji@sj-i..
Decoded Output download
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Inspector\Output\TraceFormatter\Compat;
use Reli\Lib\PhpProcessReader\CallTraceReader\CallFrame;
use function is_null;
final class CompatCallFrameFormatter
{
public function format(CallFrame $call_frame): string
{
return "{$this->formatFunctionName($call_frame)} {$call_frame->file_name}({$this->formatOpLine($call_frame)})";
}
private function formatFunctionName(CallFrame $call_frame): string
{
if ($call_frame->class_name === '') {
return $call_frame->function_name;
}
return "{$call_frame->class_name}::{$call_frame->function_name}";
}
private function formatOpLine(CallFrame $call_frame): string
{
if (is_null($call_frame->opline)) {
return '-1';
}
return "{$call_frame->opline->lineno}";
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Inspector\Output\TraceFormatter\Compat;
use Reli\Lib\PhpProcessReader\CallTraceReader\CallFrame;
use function is_null;
final class CompatCallFrameFormatter
{
public function format(CallFrame $call_frame): string
{
return "{$this->formatFunctionName($call_frame)} {$call_frame->file_name}({$this->formatOpLine($call_frame)})";
}
private function formatFunctionName(CallFrame $call_frame): string
{
if ($call_frame->class_name === '') {
return $call_frame->function_name;
}
return "{$call_frame->class_name}::{$call_frame->function_name}";
}
private function formatOpLine(CallFrame $call_frame): string
{
if (is_null($call_frame->opline)) {
return '-1';
}
return "{$call_frame->opline->lineno}";
}
}
Function Calls
None |
Stats
MD5 | e2c552a82f9a81c53ffea58a2fa6a1e2 |
Eval Count | 0 |
Decode Time | 102 ms |