# Return default PHP version

This function lists the system’s default PHP version.

Important:

  When you disable the Web Server role, the system disables this function.

Endpoint: GET /LangPHP/php_get_system_default_version
Version: 11.138.0.6
Security: BasicAuth

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "php_get_system_default_version"

  - `module` (string)
    The name of the module called.
    Example: "LangPHP"

  - `result` (object)

  - `result.data` (object)

  - `result.data.version` (string,null)
    The system’s default PHP version.

Possible values include:
  * An installed PHP package that cPanel provides. For example, ea-php80
  * An installed PHP package that another vendor provides. For example, alt-php42
  * null – This value means PHP is not installed. Also, the errors return will contain a message that indicates that PHP is not installed.

Note:

  If no default is explicitly set, the package for the newest installed version of PHP is chosen.
    Example: "ea-php73"

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.status` (integer)
    - 1 — Success.
- 0 — Failed. Check the errors field for more details.
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.


