Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Calling die/exit still executes post hooks --EXTENSIONS-- opentelemetry --FILE-- ..
Decoded Output download
--TEST--
Calling die/exit still executes post hooks
--EXTENSIONS--
opentelemetry
--FILE--
<?php
use function OpenTelemetry\Instrumentation\hook;
function goodbye() {
var_dump('goodbye');
die;
}
\OpenTelemetry\Instrumentation\hook(null, 'goodbye', fn() => var_dump('PRE'), fn() => var_dump('POST'));
goodbye();
?>
--EXPECT--
string(3) "PRE"
string(7) "goodbye"
string(4) "POST"
Did this file decode correctly?
Original Code
--TEST--
Calling die/exit still executes post hooks
--EXTENSIONS--
opentelemetry
--FILE--
<?php
use function OpenTelemetry\Instrumentation\hook;
function goodbye() {
var_dump('goodbye');
die;
}
\OpenTelemetry\Instrumentation\hook(null, 'goodbye', fn() => var_dump('PRE'), fn() => var_dump('POST'));
goodbye();
?>
--EXPECT--
string(3) "PRE"
string(7) "goodbye"
string(4) "POST"
Function Calls
None |
Stats
MD5 | c5bcc604bd36f3e5649d31887d2e17ca |
Eval Count | 0 |
Decode Time | 77 ms |