3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = new stdClass(); $x->foo = new stdClass(); $x->foo->bar = 'baz'; var_dump("abc.$x->foo->bar.def");
Output for 7.1.0 - 7.2.0
Recoverable fatal error: Object of class stdClass could not be converted to string in /in/VG1K8 on line 6
Process exited with code 255.
Output for 5.2.0 - 7.0.20
Catchable fatal error: Object of class stdClass could not be converted to string in /in/VG1K8 on line 6
Process exited with code 255.
Output for 5.0.0 - 5.1.6
string(25) "abc.Object id #2->bar.def"
Output for 4.3.0 - 4.4.9
string(19) "abc.Object->bar.def"