- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
- Parse error: syntax error, unexpected 'A' (T_STRING), expecting variable (T_VARIABLE) in /in/tUSaO on line 7
Process exited with code 255.
<?php
class A
{
protected $_a;
static A = 'A';
public function __construct()
{
$this->_a = $this;
}
public function echo()
{
var_dump($this->_a::A);
}
}