3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface I { const NAME = __CLASS__; const FOO = 'A Class Named ' . self::NAME; } echo I::FOO;
based on qrh8W
Output for 5.6.8 - 7.2.0
A Class Named I
Output for 5.3.18 - 5.5.35
Parse error: syntax error, unexpected '.', expecting ',' or ';' in /in/259aX on line 5
Process exited with code 255.