3v4l.org

run code in 200+ 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 - 7.1.7
Array ( [0] => stdClass Object ( [thisAttribute] => ) [1] => stdClass Object ( [thisAttribute] => value ) [2] => stdClass Object ( [thisAttribute] => ) ) NOT FOUNDFOUNDNOT FOUND