3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subscriptions = array(); $subscriptions["PBNwebinar"]->slug_for_menu = "pbn_webinar"; $subscriptions["PBNweekly"]->slug_menu = "pbn_weekly"; var_dump($subscriptions);
Output for 5.4.0 - 7.1.0
Warning: Creating default object from empty value in /in/HXWEX on line 4 Warning: Creating default object from empty value in /in/HXWEX on line 5 array(2) { ["PBNwebinar"]=> object(stdClass)#1 (1) { ["slug_for_menu"]=> string(11) "pbn_webinar" } ["PBNweekly"]=> object(stdClass)#2 (1) { ["slug_menu"]=> string(10) "pbn_weekly" } }
Output for 5.0.0 - 5.3.29
Strict Standards: Creating default object from empty value in /in/HXWEX on line 4 Strict Standards: Creating default object from empty value in /in/HXWEX on line 5 array(2) { ["PBNwebinar"]=> object(stdClass)#1 (1) { ["slug_for_menu"]=> string(11) "pbn_webinar" } ["PBNweekly"]=> object(stdClass)#2 (1) { ["slug_menu"]=> string(10) "pbn_weekly" } }
Output for 4.3.0 - 4.4.9
array(2) { ["PBNwebinar"]=> object(stdClass)(1) { ["slug_for_menu"]=> string(11) "pbn_webinar" } ["PBNweekly"]=> object(stdClass)(1) { ["slug_menu"]=> string(10) "pbn_weekly" } }