3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); 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})})); // echos 'barqux'

preferences:
35.63 ms | 402 KiB | 5 Q