3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface ID8 { const HOST = 'test'; } class a implements ID8 { static $b = self::HOST; } $ab = new a(); print a::b;
based on EfjTN
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Undefined class constant 'b' in /in/LaI3B:12 Stack trace: #0 {main} thrown in /in/LaI3B on line 12
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Undefined class constant 'b' in /in/LaI3B on line 12
Process exited with code 255.