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-- SPL: ArrayObject::__construct with too many arguments. --FILE-- <?php echo "Too m..
Decoded Output download
--TEST--
SPL: ArrayObject::__construct with too many arguments.
--FILE--
<?php
echo "Too many arguments:
";
Class C implements Iterator {
function current(): mixed {}
function next(): void {}
function key(): mixed {}
function valid(): bool {}
function rewind(): void {}
}
try {
var_dump(new ArrayObject(new stdClass, 0, "C", "extra"));
} catch (TypeError $e) {
echo $e->getMessage() . "(" . $e->getLine() . ")
";
}
?>
--EXPECT--
Too many arguments:
ArrayObject::__construct() expects at most 3 arguments, 4 given(12)
Did this file decode correctly?
Original Code
--TEST--
SPL: ArrayObject::__construct with too many arguments.
--FILE--
<?php
echo "Too many arguments:\n";
Class C implements Iterator {
function current(): mixed {}
function next(): void {}
function key(): mixed {}
function valid(): bool {}
function rewind(): void {}
}
try {
var_dump(new ArrayObject(new stdClass, 0, "C", "extra"));
} catch (TypeError $e) {
echo $e->getMessage() . "(" . $e->getLine() . ")\n";
}
?>
--EXPECT--
Too many arguments:
ArrayObject::__construct() expects at most 3 arguments, 4 given(12)
Function Calls
None |
Stats
MD5 | d23bc184f9f813c77386a5091ec208a8 |
Eval Count | 0 |
Decode Time | 90 ms |