3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function hello(){ echo "Hello World\n"; } } $y[0] = 'hello'; A::$y[0]();
based on kmkWr
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Access to undeclared static property: A::$y in /in/krsBl:11 Stack trace: #0 {main} thrown in /in/krsBl on line 11
Process exited with code 255.
Output for 5.0.2 - 5.6.28
Strict Standards: Non-static method A::hello() should not be called statically in /in/krsBl on line 11 Hello World
Output for 5.0.0 - 5.0.1
Fatal error: Internal compiler error - please report! in /in/krsBl on line 11
Process exited with code 255.
Output for 4.3.0 - 4.4.9
Hello World