3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $object = new stdClass; $object->color = 'lavender'; $object->size = 25; $array = json_decode(json_encode($object), TRUE); var_dump($array === (array) $object);
based on 7kbsI