3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $c = new stdClass(); $c->test = "hello"; echo $c->test; $a = array('a'=>'a','b'=>'c'); $b = array('1'=>'1','2'=>'2'); $a['c'] = 'd'; $a['d'] = $b; var_dump($a); ?>
based on RBWDk
Output for 4.3.0 - 7.1.0
helloarray(4) { ["a"]=> string(1) "a" ["b"]=> string(1) "c" ["c"]=> string(1) "d" ["d"]=> array(2) { [1]=> string(1) "1" [2]=> string(1) "2" } }