- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0
- Parse error: syntax error, unexpected '@', expecting function (T_FUNCTION) in /in/lhUcQ on line 6
Process exited with code 255.
<?php
//define('B', 'pre');
class test
{
@const A = B;
static function name() {
echo self::A . 'key';
}
static function init() {
self::name();
}
}
test::init();