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 WireUi\Support; use Illuminate\Support\Str; class SafeEval { public..

Decoded Output download

<?php

namespace WireUi\Support;

use Illuminate\Support\Str;

class SafeEval
{
    public const DIRECTIVES_REGEX = '/\B@(@?\w+(?:::\w+)?)([ 	]*)(\( ( (?>[^()]+) | (?3) )* \))?/x';

    private const SECURITY_REPLACES = ['{{{', '}}}', '{{', '}}', '{!!', '!!}', '<?php', '<?=', '<?', '?>'];

    public function evaluate(string $code): string
    {
        return Str::of($code)->replace(self::SECURITY_REPLACES, '')->replaceMatches(self::DIRECTIVES_REGEX, '');
    }
}

Did this file decode correctly?

Original Code

<?php

namespace WireUi\Support;

use Illuminate\Support\Str;

class SafeEval
{
    public const DIRECTIVES_REGEX = '/\B@(@?\w+(?:::\w+)?)([ \t]*)(\( ( (?>[^()]+) | (?3) )* \))?/x';

    private const SECURITY_REPLACES = ['{{{', '}}}', '{{', '}}', '{!!', '!!}', '<?php', '<?=', '<?', '?>'];

    public function evaluate(string $code): string
    {
        return Str::of($code)->replace(self::SECURITY_REPLACES, '')->replaceMatches(self::DIRECTIVES_REGEX, '');
    }
}

Function Calls

None

Variables

None

Stats

MD5 e2ff5a2ccade82c5c66eaeb42e5ebc6b
Eval Count 0
Decode Time 84 ms