3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { const B = static::A; const A = 'B'; protected $_a = array( self::B => 'okay!', ); }
Output for 5.3.0 - 5.4.30
Fatal error: "static::" is not allowed in compile-time constants in /in/WmFu5 on line 4
Process exited with code 255.