3v4l.org

run code in 150+ 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
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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.0.14
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 hhvm-3.10.0

Process exited with code 153.
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"