3v4l.org

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