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-- Type inference 001: Invalid type narrowing warning --INI-- opcache.enable=1 opcac..
Decoded Output download
--TEST--
Type inference 001: Invalid type narrowing warning
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--FILE--
<?php
function test() {
for ($i = 0; $i < 2; $i++) {
$obj->x;
$obj = new stdClass;
}
}
test();
class Test {
public int $x = 1;
}
function test2() {
for ($i = 0; $i < 2; $i++) {
$obj->x;
$obj = new Test;
}
}
test2();
?>
DONE
--EXPECTF--
Warning: Undefined variable $obj in %s on line %d
Warning: Attempt to read property "x" on null in %s on line %d
Warning: Undefined property: stdClass::$x in %s on line %d
Warning: Undefined variable $obj in %s on line %d
Warning: Attempt to read property "x" on null in %s on line %d
DONE
Did this file decode correctly?
Original Code
--TEST--
Type inference 001: Invalid type narrowing warning
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--FILE--
<?php
function test() {
for ($i = 0; $i < 2; $i++) {
$obj->x;
$obj = new stdClass;
}
}
test();
class Test {
public int $x = 1;
}
function test2() {
for ($i = 0; $i < 2; $i++) {
$obj->x;
$obj = new Test;
}
}
test2();
?>
DONE
--EXPECTF--
Warning: Undefined variable $obj in %s on line %d
Warning: Attempt to read property "x" on null in %s on line %d
Warning: Undefined property: stdClass::$x in %s on line %d
Warning: Undefined variable $obj in %s on line %d
Warning: Attempt to read property "x" on null in %s on line %d
DONE
Function Calls
None |
Stats
MD5 | 2b58d3b02cca5628d53e5a1d2c124976 |
Eval Count | 0 |
Decode Time | 88 ms |