<?php
var_dump(@hello);
function atom(...$atoms)
{
array_walk(
$atoms,
function ($atom) {
if (defined($atom)) {
if ($atom !== constant($atom)) raise("The atom is already defined with a different value: ".$atom);
} else {
define($atom, $atom);
}
}
);
}
atom(@atom);
atom(@raise);
atom(@dispatch);
atom(@acceptsmessage);
atom(@isatom);
var_dump(@atom);
Fatal error: Uncaught Error: Undefined constant "hello" in /in/sMAiv:2
Stack trace:
#0 {main}
thrown in /in/sMAiv on line 2
Process exited with code 255.