3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $values = array( (object)array('thisAttribute' => null), (object)array('thisAttribute' => 'value'), (object)array('thisAttribute' => null) ); print_r($values); foreach($values as $value) { $myVal = $value->thisAttribute; if(isset($myVal)) print("FOUND"); if(!isset($myVal)) print("NOT FOUND"); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => stdClass Object ( [thisAttribute] => ) [1] => stdClass Object ( [thisAttribute] => value ) [2] => stdClass Object ( [thisAttribute] => ) ) NOT FOUNDFOUNDNOT FOUND