3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { function a() { } } A::a();
based on Xdee0
Output for 7.0.0 - 7.1.0
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; A has a deprecated constructor in /in/eYOeu on line 3 Fatal error: Uncaught Error: Non-static method A::a() cannot be called statically in /in/eYOeu:9 Stack trace: #0 {main} thrown in /in/eYOeu on line 9
Process exited with code 255.
Output for 4.3.0 - 4.4.9, hhvm-3.10.0 - 3.12.0
Output for 5.0.0 - 5.6.28
Fatal error: Non-static method A::a() cannot be called statically in /in/eYOeu on line 9
Process exited with code 255.