3v4l.org

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

preferences:
136.01 ms | 1458 KiB | 7 Q