3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface ConfigurationManagerInterface { public const string CONFIGURATION_TYPE_FRAMEWORK = 'Framework'; } class CustomManager implements ConfigurationManagerInterface { public const CONFIGURATION_TYPE_FRAMEWORK = 'Framework'; }
Output for 8.5.10 - 8.5.13, 8.6.0
Fatal error: Type of CustomManager::CONFIGURATION_TYPE_FRAMEWORK must be compatible with ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK of type string in /in/NWi6C on line 8 Stack trace: #0 {main}
Process exited with code 255.
Output for 8.3.5 - 8.3.37, 8.4.1 - 8.4.27
Fatal error: Type of CustomManager::CONFIGURATION_TYPE_FRAMEWORK must be compatible with ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK of type string in /in/NWi6C on line 8
Process exited with code 255.
Output for 8.2.34
Parse error: syntax error, unexpected identifier "CONFIGURATION_TYPE_FRAMEWORK", expecting "=" in /in/NWi6C on line 5
Process exited with code 255.

preferences:
38.95 ms | 1170 KiB | 6 Q