3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Filesystem { const DISABLED = 0; const DEBUG = 1; const INFO = 2; const WARN = 4; const ERROR = 8; const ERROR_LEVELS = array(self::DISABLED, self::DEBUG, self::INFO, self::WARN, self::ERROR); }
Output for 5.6.7 - 5.6.28, 7.0.0 - 7.1.0
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.5.35, hhvm-3.10.0 - 3.12.0
Fatal error: Arrays are not allowed in class constants in /in/mCmqI on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Fatal error: Arrays are not allowed in class constants in /in/7vJLH on line 10
Process exited with code 255.