3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class DotPhalconMissingException extends CommandsException { static const DEFAULT_MESSAGE = ".phalcon file not found: This command should be invoked inside a Phalcon project directory."; public function __construct (string $message = DEFAULT_MESSAGE , int $code = 0 , Throwable $previous = NULL) { $this->message = $message; $this->code = $code; $htis->previous = $previous; } }
based on oDLMS
Output for 7.1.0 - 7.1.7
Fatal error: Cannot use 'static' as constant modifier in /in/bcrdh on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20
Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /in/bcrdh on line 5
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected T_CONST, expecting T_VARIABLE in /in/bcrdh:5 Stack trace: #0 {main}
Process exited with code 255.