3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $object = (object) array( 'entity_id' => 99, ); var_dump($object->entity_id); $array = array( (object) array( 'id' => 99, ), ); var_dump($array->entity_id);
based on CmtTh
Output for 5.0.0 - 7.1.0
int(99) Notice: Trying to get property of non-object in /in/nsMMq on line 15 NULL
Output for 4.3.0 - 4.4.9
int(99) NULL