3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?phpclass Foo { const BAR = 'Bar';}function getFoo() { return new Foo();}var_dump(getFoo()::BAR);
Output for 5.4.0 - 5.4.32
<?phpclass Foo { const BAR = 'Bar';}function getFoo() { return new Foo();}var_dump(getFoo()::BAR);