Curly braces syntax for addressing a class constant with a variable

The following PHP code is perfectly valid and runs without an error:

<?php
class MyClass {
    const CONST_VALUE = 'A constant value';
}

$classname = 'MyClass';
$identifier = 'CONST_VALUE';
echo $classname::{$identifier}, "\n";