3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $original = unserialize('O:8:"stdClass":1:{s:4:"1134";i:1;}'); $result = $original; print_r ($result); echo $result["1134"];
based on lIluT
Output for 7.0.28 - 7.3.0rc3
stdClass Object ( [1134] => 1 ) Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/Wm1Nu:7 Stack trace: #0 {main} thrown in /in/Wm1Nu on line 7
Process exited with code 255.
Output for 5.6.38
stdClass Object ( [1134] => 1 ) Fatal error: Cannot use object of type stdClass as array in /in/Wm1Nu on line 7
Process exited with code 255.