3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $original = unserialize('O:8:"stdClass":1:{s:4:"1134";i:1;}'); print_r($original); $result = (array)$original; print_r ($result); echo $result["1134"];
based on lIluT
Output for 7.2.0 - 7.3.0rc3
stdClass Object ( [1134] => 1 ) Array ( [1134] => 1 ) 1
Output for 5.6.38 - 7.1.23
stdClass Object ( [1134] => 1 ) Array ( [1134] => 1 ) Notice: Undefined offset: 1134 in /in/rRZR5 on line 8