3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? PHPVERSION() < "7.0.0" or exit; class A { static function hello() { echo "Hello World\n"; } } $y[0] = 'hello'; A::$y[0](); ?>
based on oIGDd
Output for 7.0.0 - 7.2.0
Output for 5.4.11 - 5.6.28
Hello World
Output for 5.3.21 - 5.3.29
<? PHPVERSION() < "7.0.0" or exit; class A { static function hello() { echo "Hello World\n"; } } $y[0] = 'hello'; A::$y[0](); ?>