Constants Can Be Impossible

In this code, the constant x2::F is not possible, because adding a string and an array will result in Fatal error.

Yet, this will be determined at execution time, and only if the constant is being used.

Since this constant is never used, its code is never executed, and it doesn’t yield any error. PHP has optimized the error away.

../_images/when_a_constant_is_impossible.png