3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'b'; $x->{++$a}[$a.'x'][++$a]->$a = ++$a; var_dump($x);
Output for 5.4.0 - 7.1.0
Warning: Creating default object from empty value in /in/MjMsb on line 3 object(stdClass)#1 (1) { ["c"]=> array(1) { ["cx"]=> array(1) { ["d"]=> object(stdClass)#2 (1) { ["e"]=> string(1) "e" } } } }
Output for 5.1.0 - 5.3.29
Strict Standards: Creating default object from empty value in /in/MjMsb on line 3 object(stdClass)#1 (1) { ["c"]=> array(1) { ["cx"]=> array(1) { ["d"]=> object(stdClass)#2 (1) { ["e"]=> string(1) "e" } } } }
Output for 5.0.0 - 5.0.5
Strict Standards: Creating default object from empty value in /in/MjMsb on line 3 object(stdClass)#1 (1) { ["c"]=> array(1) { ["cx"]=> array(1) { ["d"]=> object(stdClass)#2 (1) { ["d"]=> string(1) "e" } } } }
Output for 4.3.0 - 4.4.9
object(stdClass)(1) { ["c"]=> array(1) { ["cx"]=> array(1) { ["d"]=> object(stdClass)(1) { ["d"]=> string(1) "e" } } } }