3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = ['a' => ['b' => 1], 'blub', 52]; var_dump((object)$arr);
Output for 7.2.0
object(stdClass)#1 (3) { ["a"]=> array(1) { ["b"]=> int(1) } ["0"]=> string(4) "blub" ["1"]=> int(52) }
Output for 5.5.0 - 7.1.10
object(stdClass)#1 (3) { ["a"]=> array(1) { ["b"]=> int(1) } [0]=> string(4) "blub" [1]=> int(52) }