3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public $bar; } var_dump(get_object_vars(new Foo)); $blanks = array("", " ", FALSE, TRUE, array(), NULL, "0", 0, 0.0, new stdClass, "\0"); #foreach($blanks as $blank){ var_dump($blank); }
based on lkdDY
Output for 5.4.0 - 7.2.0
array(1) { ["bar"]=> NULL }