3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class C { const A = 10; const B = 20 + self::A; }
Output for 5.6.7 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.3.0 - 5.5.35
Parse error: syntax error, unexpected '+', expecting ',' or ';' in /in/5hcST on line 5
Process exited with code 255.