3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { private static $var = 1 + 1; }
based on SFuCr
Output for 5.6.8 - 7.3.0rc4
Output for 5.4.0 - 5.5.35
Parse error: syntax error, unexpected '+', expecting ',' or ';' in /in/G1jRm on line 4
Process exited with code 255.