3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? class A { function hello() { echo "Hello World\n"; } } $x = 'hello'; A::$x(); ?>
based on MfTiA
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method A::hello() should not be called statically in /in/qNiuc on line 10 Hello World
Output for 5.4.11 - 5.6.28
Strict Standards: Non-static method A::hello() should not be called statically in /in/qNiuc on line 10 Hello World
Output for 5.3.21 - 5.3.29
<? class A { function hello() { echo "Hello World\n"; } } $x = 'hello'; A::$x(); ?>