3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test { const AA = 0; const BB = 1; const st_AA = 'Aa'; const st_BB = 'Bb'; public static $state = array( self::AA => self::st_AA self::BB => self::st_BB ); } var_dump( test::$state );
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected 'self' (T_STRING), expecting ')' in /in/HSNXR on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/HSNXR on line 13
Process exited with code 255.