3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((object) ['test' => 'values']); $object = new stdClass(); $object->test = 'values'; var_dump((array) $object);
based on lH6h7
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.8
object(stdClass)#1 (1) { ["test"]=> string(6) "values" } array(1) { ["test"]=> string(6) "values" }