3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obj = new stdClass(); $obj->id = 5; $obj->name = "test"; $obj->field = ["hi" => "there", "null" => "welt"]; var_dump((array) $obj);
Output for 5.4.0 - 7.2.0
array(3) { ["id"]=> int(5) ["name"]=> string(4) "test" ["field"]=> array(2) { ["hi"]=> string(5) "there" ["null"]=> string(4) "welt" } }