3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = new stdClass(); $y = '0'; $z = '$'; $x->$y->$z = 'ALPHA'; print $x->$y->$z;
Output for 5.4.0 - 7.1.0
Warning: Creating default object from empty value in /in/1XL53 on line 5 ALPHA
Output for 4.3.0 - 5.3.29
ALPHA