- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected 'static' (T_STATIC), expecting variable (T_VARIABLE) in /in/UtOZf on line 6
Process exited with code 255.
<?php
error_reporting(0);
class a {
var static $a = 4;
function b() {
echo self::$a;
}
function c($var) {
return $var . 'x';
}
}
a::b();