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 require('_utils.php'); $v = test_closure(); // Closure assert($v('works') === 'wo..

Decoded Output download

<?php

require('_utils.php');

$v = test_closure();

// Closure
assert($v('works') === 'works');

// Closure once
$closure = test_closure_once('test');

assert(call_user_func($closure) === 'test');
assert_exception_thrown($closure);

function take(\stdClass $rs): void { }

try {
    take($closure);
} catch (\TypeError $e) {
    assert(str_starts_with($e->getMessage(), 'take(): Argument #1 ($rs) must be of type stdClass, RustClosure given, called in '));
} ?>

Did this file decode correctly?

Original Code

<?php

require('_utils.php');

$v = test_closure();

// Closure
assert($v('works') === 'works');

// Closure once
$closure = test_closure_once('test');

assert(call_user_func($closure) === 'test');
assert_exception_thrown($closure);

function take(\stdClass $rs): void { }

try {
    take($closure);
} catch (\TypeError $e) {
    assert(str_starts_with($e->getMessage(), 'take(): Argument #1 ($rs) must be of type stdClass, RustClosure given, called in '));
}

Function Calls

None

Variables

None

Stats

MD5 5a7d804800ff9ef806fb7cd1fdf8b612
Eval Count 0
Decode Time 96 ms