Forces kphp to start compiling this function even if it is not used explicitly. Typically, is required for callbacks passed as strings, as they are resolved much later.
Indicates, that this function never returns (always calls exit()). While building a control flow graph, KPHP treats all code after such functions' invocations as inaccessible, does not warn on missing break, etc.
Tells KPHP that this function is pure: the result is always the same on constant arguments. Therefore, a function can be called in constant arrays for example.
See template functions.
Marks a function to be sync. If such a function turns out to be resumable, you'll get a compilation error.
See async programming.
Suppress compilation warning of a specified function.
See embedded profiler.
Makes assembler code of this function aggressively inline everything, avoiding
callq. Do not use it without examining assembler output!
implicit-array-cast. These annotation are propagated to all reachable functions by the callstack. See TODO.
See serialization and msgpack.
Fields of an immutable class are deeply constant and can be set only in __construct(). All nested instances must be also immutable.
Such instances can be stored in an instance cache.
Class fields marked @kphp-const can be set only in __construct(). Constantness is not deep: array elements and nested instance properties can still be modified, so constant is the field itself.
This is fully discussed in PHPDoc is the way you declare types.
KPHPStorm plugin knows about all doc tags, suggests, and validates them.