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-- Overwrite reference in untyped property --FILE-- <?php class Test { public $p..

Decoded Output download

--TEST--
Overwrite reference in untyped property
--FILE--
<?php
class Test {
    public $prop;
}
$s = <<<'STR'
O:4:"Test":2:{s:4:"prop";R:1;s:4:"prop";i:0;}
STR;
var_dump(unserialize($s));
?>
--EXPECT--
object(Test)#1 (1) {
  ["prop"]=>
  int(0)
}

Did this file decode correctly?

Original Code

--TEST--
Overwrite reference in untyped property
--FILE--
<?php
class Test {
    public $prop;
}
$s = <<<'STR'
O:4:"Test":2:{s:4:"prop";R:1;s:4:"prop";i:0;}
STR;
var_dump(unserialize($s));
?>
--EXPECT--
object(Test)#1 (1) {
  ["prop"]=>
  int(0)
}

Function Calls

None

Variables

None

Stats

MD5 5b7ca8aba4c0d3a5bb35eff33103b775
Eval Count 0
Decode Time 110 ms