- Output for 8.1.23 - 8.1.28, 8.2.10 - 8.2.18, 8.3.0 - 8.3.6
- CONSTRUCTOR CALLED
- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28, 5.5.0 - 5.5.12
- Fatal error: Constructor a::a() cannot be static in /in/Zj6Lr on line 13
Process exited with code 255.
<?php
error_reporting(0);
class a {
static function a() {
echo "CONSTRUCTOR CALLED\r\n";
}
function b($var) {
return $var . 'x';
}
}
a::a();