3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myclass = new stdClass (); $myclass->status = true; $myclass->sql = "SELECT * FROM `story`"; $myclass->story = array("id" => "1"); var_dump($myclass);
based on 3eQ3r
Output for 5.0.0 - 7.1.0
object(stdClass)#1 (3) { ["status"]=> bool(true) ["sql"]=> string(21) "SELECT * FROM `story`" ["story"]=> array(1) { ["id"]=> string(1) "1" } }
Output for 4.3.0 - 4.4.9
object(stdClass)(3) { ["status"]=> bool(true) ["sql"]=> string(21) "SELECT * FROM `story`" ["story"]=> array(1) { ["id"]=> string(1) "1" } }