PHP lista todas as constantes

print_r(get_defined_constants());
Ivan The Terrible