3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass; $a->a = new stdClass; $a->a->a = new stdClass; $a->a->a->a = 'a'; $a = [ 'a' => [ 'a' => [ 'a' => 'a' ] ] ]; $b = $a->a; var_dump($b); var_dump($b['a'] = 'c'); var_dump($a);