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: Using object with shared properties --FILE-- <?php..
Decoded Output download
--TEST--
SPL: ArrayObject::__construct: Using object with shared properties
--FILE--
<?php
$y = 2;
$x = 1;
$a = array($y, $x);
$o = (object)$a;
$ao = new ArrayObject($o);
$ao->asort();
var_dump($a, $o, $ao);
?>
--EXPECT--
array(2) {
[0]=>
int(2)
[1]=>
int(1)
}
object(stdClass)#1 (2) {
["1"]=>
int(1)
["0"]=>
int(2)
}
object(ArrayObject)#2 (1) {
["storage":"ArrayObject":private]=>
object(stdClass)#1 (2) {
["1"]=>
int(1)
["0"]=>
int(2)
}
}
Did this file decode correctly?
Original Code
--TEST--
SPL: ArrayObject::__construct: Using object with shared properties
--FILE--
<?php
$y = 2;
$x = 1;
$a = array($y, $x);
$o = (object)$a;
$ao = new ArrayObject($o);
$ao->asort();
var_dump($a, $o, $ao);
?>
--EXPECT--
array(2) {
[0]=>
int(2)
[1]=>
int(1)
}
object(stdClass)#1 (2) {
["1"]=>
int(1)
["0"]=>
int(2)
}
object(ArrayObject)#2 (1) {
["storage":"ArrayObject":private]=>
object(stdClass)#1 (2) {
["1"]=>
int(1)
["0"]=>
int(2)
}
}
Function Calls
None |
Stats
MD5 | 1b3327bd31c0c21d427c32e40745c0f2 |
Eval Count | 0 |
Decode Time | 74 ms |