3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
176.4 ms | 1395 KiB | 51 Q