<?php $constant = function ($nome) { return $nome; }; echo "FOO = {$constant(FOO)}\n", "BAZ = {$constant(BAZ)}\n", "PHP_VERSION = {$constant(PHP_VERSION)}\n";
Standard input is empty
FOO = bar BAZ = BAZ PHP_VERSION = 7.1.1-1
PHP Notice: Use of undefined constant BAZ - assumed 'BAZ' in /home/2HfV61/prog.php on line 9