- Output for 8.1.23 - 8.1.27, 8.2.10 - 8.2.17, 8.3.0 - 8.3.4
- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
- Fatal error: Constructor A::a() cannot be static in /in/JMo9n on line 5
Process exited with code 255.
<?php
class A {
public static function a() {echo "A\n";}
}
class B {
public static function a() {
static::a();
}
}