3v4l.org

run code in 200+ 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 7.2.0
Warning: Use of undefined constant grault - assumed 'grault' (this will throw an Error in a future version of PHP) in /in/Lfi9q on line 11 qux
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant grault - assumed 'grault' in /in/Lfi9q on line 11 qux