<?php

// Start of tokenizer v.0.1
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;

/**
 * Split given source into PHP tokens
 * @link https://php.net/manual/en/function.token-get-all.php
 * @param string $code <p>
 * The PHP source to parse.
 * </p>
 * @param int $flags
 * <p>
 * <p>
 * Valid flags:
 * </p><ul>
 * <li>
 *
 * <b>TOKEN_PARSE</b> - Recognises the ability to use
 * reserved words in specific contexts.
 * </li>
 * </ul>
 * </p>
 * @return array An array of token identifiers. Each individual token identifier is either
 * a single character (i.e.: ;, .,
 * &gt;, !, etc...),
 * or a three element array containing the token index in element 0, the string
 * content of the original token in element 1 and the line number in element 2.
 */
#[Pure]
function token_get_all(string $code, #[PhpStormStubsElementAvailable(from: '7.0')] int $flags = 0): array {}

/**
 * Get the symbolic name of a given PHP token
 * @link https://php.net/manual/en/function.token-name.php
 * @param int $id <p>
 * The token value.
 * </p>
 * @return string The symbolic name of the given <i>token</i>.
 */
#[Pure]
function token_name(int $id): string {}

define('TOKEN_PARSE', 1);
define('T_REQUIRE_ONCE', 263);
define('T_REQUIRE', 262);
define('T_EVAL', 323);
define('T_INCLUDE_ONCE', 261);
define('T_INCLUDE', 260);
define('T_LOGICAL_OR', 264);
define('T_LOGICAL_XOR', 265);
define('T_LOGICAL_AND', 266);
define('T_PRINT', 267);
define('T_YIELD', 268);
define('T_DOUBLE_ARROW', 269);
define('T_YIELD_FROM', 270);
define('T_POW_EQUAL', 282);
define('T_SR_EQUAL', 281);
define('T_SL_EQUAL', 280);
define('T_XOR_EQUAL', 279);
define('T_OR_EQUAL', 278);
define('T_AND_EQUAL', 277);
define('T_MOD_EQUAL', 276);
define('T_CONCAT_EQUAL', 275);
define('T_DIV_EQUAL', 274);
define('T_MUL_EQUAL', 273);
define('T_MINUS_EQUAL', 272);
define('T_PLUS_EQUAL', 271);
/**
 * @since 7.4
 */
define('T_COALESCE_EQUAL', 283);
define('T_COALESCE', 284);
define('T_BOOLEAN_OR', 285);
define('T_BOOLEAN_AND', 286);
define('T_SPACESHIP', 293);
define('T_IS_NOT_IDENTICAL', 292);
define('T_IS_IDENTICAL', 291);
define('T_IS_NOT_EQUAL', 290);
define('T_IS_EQUAL', 289);
define('T_IS_GREATER_OR_EQUAL', 295);
define('T_IS_SMALLER_OR_EQUAL', 294);
define('T_SR', 297);
define('T_SL', 296);
define('T_INSTANCEOF', 298);
define('T_UNSET_CAST', 305);
define('T_BOOL_CAST', 304);
define('T_OBJECT_CAST', 303);
define('T_ARRAY_CAST', 302);
define('T_STRING_CAST', 301);
define('T_DOUBLE_CAST', 300);
define('T_INT_CAST', 299);
define('T_DEC', 389);
define('T_INC', 388);
define('T_POW', 306);
define('T_CLONE', 307);
define('T_NEW', 324);
define('T_ELSEIF', 309);
define('T_ELSE', 310);
define('T_ENDIF', 327);
define('T_PUBLIC', 362);
define('T_PROTECTED', 361);
define('T_PRIVATE', 360);
define('T_FINAL', 359);
define('T_ABSTRACT', 358);
define('T_STATIC', 357);
define('T_LNUMBER', 311);
define('T_DNUMBER', 312);
define('T_STRING', 313);
define('T_VARIABLE', 317);
define('T_INLINE_HTML', 318);
define('T_ENCAPSED_AND_WHITESPACE', 319);
define('T_CONSTANT_ENCAPSED_STRING', 320);
define('T_STRING_VARNAME', 321);
define('T_NUM_STRING', 322);
define('T_EXIT', 325);
define('T_IF', 326);
define('T_ECHO', 328);
define('T_DO', 329);
define('T_WHILE', 330);
define('T_ENDWHILE', 331);
define('T_FOR', 332);
define('T_ENDFOR', 333);
define('T_FOREACH', 334);
define('T_ENDFOREACH', 335);
define('T_DECLARE', 336);
define('T_ENDDECLARE', 337);
define('T_AS', 338);
define('T_SWITCH', 339);
define('T_ENDSWITCH', 340);
define('T_CASE', 341);
define('T_DEFAULT', 342);
define('T_MATCH', 343);
define('T_BREAK', 344);
define('T_CONTINUE', 345);
define('T_GOTO', 346);
define('T_FUNCTION', 347);
define('T_CONST', 349);
define('T_RETURN', 350);
define('T_TRY', 351);
define('T_CATCH', 352);
define('T_FINALLY', 353);
define('T_THROW', 258);
define('T_USE', 354);
define('T_INSTEADOF', 355);
define('T_GLOBAL', 356);
define('T_VAR', 364);
define('T_UNSET', 365);
define('T_ISSET', 366);
define('T_EMPTY', 367);
define('T_HALT_COMPILER', 368);
define('T_CLASS', 369);
define('T_TRAIT', 370);
define('T_INTERFACE', 371);
/**
 * @since 8.1
 */
define('T_ENUM', 372);
define('T_EXTENDS', 373);
define('T_IMPLEMENTS', 374);
define('T_OBJECT_OPERATOR', 390);
define('T_LIST', 376);
define('T_ARRAY', 377);
define('T_CALLABLE', 378);
define('T_LINE', 379);
define('T_FILE', 380);
define('T_DIR', 381);
define('T_CLASS_C', 382);
define('T_TRAIT_C', 383);
define('T_METHOD_C', 384);
define('T_FUNC_C', 385);
define('T_NS_C', 386);
/**
 * @since 8.4
 */
define('T_PROPERTY_C', 350);
/**
 * @since 8.0
 */
define('T_ATTRIBUTE', 387);
define('T_COMMENT', 392);
define('T_DOC_COMMENT', 393);
define('T_OPEN_TAG', 394);
define('T_OPEN_TAG_WITH_ECHO', 395);
define('T_CLOSE_TAG', 396);
define('T_WHITESPACE', 397);
define('T_START_HEREDOC', 398);
define('T_END_HEREDOC', 399);
define('T_DOLLAR_OPEN_CURLY_BRACES', 400);
define('T_CURLY_OPEN', 401);
define('T_PAAMAYIM_NEKUDOTAYIM', 402);
define('T_NAMESPACE', 375);
define('T_NS_SEPARATOR', 403);
define('T_ELLIPSIS', 404);
define('T_DOUBLE_COLON', 402);
/**
 * @since 7.4
 */
define('T_FN', 348);
define('T_BAD_CHARACTER', 405);

/**
 * @since 8.0
 */
define('T_NAME_FULLY_QUALIFIED', 314);
/**
 * @since 8.0
 */
define('T_NAME_RELATIVE', 315);
/**
 * @since 8.0
 */
define('T_NAME_QUALIFIED', 316);
/**
 * @since 8.0
 */
define('T_NULLSAFE_OBJECT_OPERATOR', 391);

/**
 * @since 8.1
 */
define('T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG', 288);

/**
 * @since 8.1
 */
define('T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG', 287);

/**
 * @since 8.1
 */
define('T_READONLY', 363);

/**
 * @removed 7.0
 */
define('T_CHARACTER', 315);

/**
 * @since 8.4
 */
define('T_PRIVATE_SET', 327);

/**
 * @since 8.4
 */
define('T_PROTECTED_SET', 328);

/**
 * @since 8.4
 */
define('T_PUBLIC_SET', 329);
define('T_PIPE', 408);
define('T_VOID_CAST', 388);
