3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $_a; static A = 'A'; public function __construct() { $this->_a = $this; } public function echo() { var_dump($this->_a::A); } }
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.

preferences:
161.77 ms | 1387 KiB | 25 Q