3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $o = new stdClass; $o->{$name = " \x0"} = 'a'; var_dump(array($name, $o->{" "}, $o->$name));
Output for 5.2.6 - 7.1.0
Notice: Undefined property: stdClass::$ in /in/EZXUq on line 5 array(3) { [0]=> string(2) " " [1]=> NULL [2]=> string(1) "a" }
Output for 5.0.0 - 5.2.5
Notice: Undefined property: stdClass::$ in /in/EZXUq on line 5 array(3) { [0]=> string(2) " " [1]=> NULL [2]=> string(1) "a" }
Output for 4.3.0 - 4.4.9
Notice: Undefined property: in /in/EZXUq on line 5 array(3) { [0]=> string(2) " " [1]=> NULL [2]=> string(1) "a" }