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-- Result of assigning to typed reference --FILE-- <?php class Test { public ?s..
Decoded Output download
--TEST--
Result of assigning to typed reference
--FILE--
<?php
class Test {
public ?string $prop;
}
function test() {
$obj = new Test;
$ref =& $obj->prop;
var_dump($ref = 0);
}
function test2() {
$obj = new Test;
$ary = [];
$ary[0] =& $obj->prop;
var_dump($ary[0] = 0);
}
test();
test2();
?>
--EXPECT--
string(1) "0"
string(1) "0"
Did this file decode correctly?
Original Code
--TEST--
Result of assigning to typed reference
--FILE--
<?php
class Test {
public ?string $prop;
}
function test() {
$obj = new Test;
$ref =& $obj->prop;
var_dump($ref = 0);
}
function test2() {
$obj = new Test;
$ary = [];
$ary[0] =& $obj->prop;
var_dump($ary[0] = 0);
}
test();
test2();
?>
--EXPECT--
string(1) "0"
string(1) "0"
Function Calls
None |
Stats
MD5 | 13970a7501a575e8d2092675f6eb354e |
Eval Count | 0 |
Decode Time | 100 ms |