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 use Pest\Support\Reflection; it('gets file name from closure', function () { $..

Decoded Output download

<?php

use Pest\Support\Reflection;

it('gets file name from closure', function () {
    $fileName = Reflection::getFileNameFromClosure(function () {
    });

    expect($fileName)->toBe(__FILE__);
});

it('gets property values', function () {
    $class = new class()
    {
        private $foo = 'bar';
    };

    $value = Reflection::getPropertyValue($class, 'foo');

    expect($value)->toBe('bar');
});
 ?>

Did this file decode correctly?

Original Code

<?php

use Pest\Support\Reflection;

it('gets file name from closure', function () {
    $fileName = Reflection::getFileNameFromClosure(function () {
    });

    expect($fileName)->toBe(__FILE__);
});

it('gets property values', function () {
    $class = new class()
    {
        private $foo = 'bar';
    };

    $value = Reflection::getPropertyValue($class, 'foo');

    expect($value)->toBe('bar');
});

Function Calls

None

Variables

None

Stats

MD5 2a4f605251b79bceb5eb714fcf91dd86
Eval Count 0
Decode Time 94 ms