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 5.4.0 - 5.4.32
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/60UQS on line 2
Process exited with code 255.