3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? class A { static function hello() { echo "Hello World\n"; } } $y[0] = 'hello'; A::$y[0](); ?>
based on MfTiA
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Access to undeclared static property: A::$y in /in/PJ7GE:10 Stack trace: #0 {main} thrown in /in/PJ7GE on line 10
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Hello World
Output for 4.3.0 - 5.3.29
<? class A { static function hello() { echo "Hello World\n"; } } $y[0] = 'hello'; A::$y[0](); ?>