3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arraykey->date = "2011-10-11"; $arraykey->page_views = 3; var_dump($arraykey); foreach($arraykey as $ad => $v) { var_dump($ad); }
Output for 5.4.0 - 7.1.0
Warning: Creating default object from empty value in /in/9C1pL on line 4 object(stdClass)#1 (2) { ["date"]=> string(10) "2011-10-11" ["page_views"]=> int(3) } string(4) "date" string(10) "page_views"
Output for 5.0.0 - 5.3.29
Strict Standards: Creating default object from empty value in /in/9C1pL on line 4 object(stdClass)#1 (2) { ["date"]=> string(10) "2011-10-11" ["page_views"]=> int(3) } string(4) "date" string(10) "page_views"
Output for 4.3.0 - 4.4.9
object(stdClass)(2) { ["date"]=> string(10) "2011-10-11" ["page_views"]=> int(3) } string(4) "date" string(10) "page_views"