3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A{ const X = 1; const Y = static::X; } class B extends A{ const X=2; } echo B::Y;
Output for 5.3.0 - 5.4.8
Fatal error: "static::" is not allowed in compile-time constants in /in/v6Bp9 on line 4
Process exited with code 255.