Constant Scalar Expression

A constant scalar expression is an expression that can be evaluated at compile time and consists only of scalar values (constants), operators. Constant scalar expressions are used to initialize constants, and default values for parameters and properties.

<?php

const A = 1;
const B = A + 10;

?>

Documentation

Related : Constants, Parameter, Scalar Types

Added in PHP 5.6+