PHP coding challenge

Predefined constants

āœØ Your Task

Use a predefined constant to detect the PHP major version used by the execution environment.

āœļø PHP PHP version: 8.1
šŸ‘‰ Press "Run" and check the result below.
Test cases
Method solution() should return a string value 8