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-- Lengths and references are not signed --FILE-- <?php var_dump(unserialize('s:+1:..
Decoded Output download
--TEST--
Lengths and references are not signed
--FILE--
<?php
var_dump(unserialize('s:+1:"x";'));
var_dump(unserialize('s:-1:"x";'));
var_dump(unserialize('a:+0:{}'));
var_dump(unserialize('a:-0:{}'));
var_dump(unserialize('O:+8:"stdClass":0:{}'));
var_dump(unserialize('O:-8:"stdClass":0:{}'));
var_dump(unserialize('C:+11:"ArrayObject":0:{}'));
var_dump(unserialize('C:-11:"ArrayObject":0:{}'));
var_dump(unserialize('a:1:{i:0;r:+1;}'));
var_dump(unserialize('a:1:{i:0;r:-1;}'));
var_dump(unserialize('a:1:{i:0;R:+1;}'));
var_dump(unserialize('a:1:{i:0;R:-1;}'));
?>
--EXPECTF--
Notice: unserialize(): Error at offset 0 of 9 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 9 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 7 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 7 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 20 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 20 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 24 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 24 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
bool(false)
Did this file decode correctly?
Original Code
--TEST--
Lengths and references are not signed
--FILE--
<?php
var_dump(unserialize('s:+1:"x";'));
var_dump(unserialize('s:-1:"x";'));
var_dump(unserialize('a:+0:{}'));
var_dump(unserialize('a:-0:{}'));
var_dump(unserialize('O:+8:"stdClass":0:{}'));
var_dump(unserialize('O:-8:"stdClass":0:{}'));
var_dump(unserialize('C:+11:"ArrayObject":0:{}'));
var_dump(unserialize('C:-11:"ArrayObject":0:{}'));
var_dump(unserialize('a:1:{i:0;r:+1;}'));
var_dump(unserialize('a:1:{i:0;r:-1;}'));
var_dump(unserialize('a:1:{i:0;R:+1;}'));
var_dump(unserialize('a:1:{i:0;R:-1;}'));
?>
--EXPECTF--
Notice: unserialize(): Error at offset 0 of 9 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 9 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 7 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 7 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 20 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 20 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 24 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 0 of 24 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
bool(false)
Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
bool(false)
Function Calls
unserialize | 1 |
Stats
MD5 | 7bf2bd82fe8004a92b59ae86e2c1c522 |
Eval Count | 0 |
Decode Time | 89 ms |