3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class FooClass { } $foo = new FooClass(); $foo->bar = "qux"; $thing = "bar"; $qux = "th"; $grault = "ing"; echo $foo->${${$foo->bar}.${grault}};
based on ZZ0Fr
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant grault - assumed 'grault' in /in/Lfi9q on line 11 qux
Output for hhvm-3.10.0

Process exited with code 153.