3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //define('B', 'pre'); class test { const A = @B; static function name() { echo self::A . 'key'; } static function init() { self::name(); } } test::init();
based on lhUcQ
Output for 7.0.0
Fatal error: Constant expression contains invalid operations in /in/a8J8V on line 6
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Parse error: syntax error, unexpected '@' in /in/a8J8V on line 6
Process exited with code 255.