3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static function a() { print 'Correct' . PHP_EOL; } } call_user_function_array('\A::a', array()); '\A::a'();
Output for 7.0.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/mFPoh on line 3 Fatal error: Constructor A::a() cannot be static in /in/mFPoh on line 3
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Fatal error: Constructor A::a() cannot be static in /in/mFPoh on line 5
Process exited with code 255.