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"; function th($waldo){ global $qux, $grault, $thing; return ${$qux.$grault}.$waldo; } echo ${($foo->${${$foo->bar}.((${qux}.${grault}===$qux.${grault})?${grault}:${$qux.$grault})})}(($foo->${${$foo->bar}.((${qux}.${grault}===$qux.${grault})?${grault}:${$qux.$grault})}));
Output for 4.3.0 - 7.1.0
Notice: Use of undefined constant qux - assumed 'qux' in /in/R2DVr on line 15 Notice: Use of undefined constant grault - assumed 'grault' in /in/R2DVr on line 15 Notice: Use of undefined constant grault - assumed 'grault' in /in/R2DVr on line 15 Notice: Use of undefined constant grault - assumed 'grault' in /in/R2DVr on line 15 Notice: Use of undefined constant qux - assumed 'qux' in /in/R2DVr on line 15 Notice: Use of undefined constant grault - assumed 'grault' in /in/R2DVr on line 15 Notice: Use of undefined constant grault - assumed 'grault' in /in/R2DVr on line 15 Notice: Use of undefined constant grault - assumed 'grault' in /in/R2DVr on line 15 barqux