PHP 8.5

出典: Zend/zend_language_parser.y @ php-8.5.0 (685e996) / lrama 0.8.0 / 2025-11-18

この図はパーサ向けの文法を表しています。言語仕様そのものではなく、字句解析器の状態や意味検査による制約は図に表れません。

Zend Engine License 2.00

読みやすい表示 原文どおり

$accept

start

reserved_non_modifiers

semi_reserved

ampersand

identifier

top_statement_list

namespace_declaration_name

namespace_name

legacy_namespace_name

name

attribute_decl

attribute_group

attribute

attributes

attributed_statement

attributed_top_statement

top_statement

$@1

$@2

use_type

group_use_declaration

mixed_group_use_declaration

possible_comma

inline_use_declarations

unprefixed_use_declarations

use_declarations

inline_use_declaration

unprefixed_use_declaration

use_declaration

const_list

inner_statement_list

inner_statement

statement

$@3

catch_list

catch_name_list

optional_variable

finally_statement

unset_variables

unset_variable

function_name

function_declaration_statement

is_reference

is_variadic

@4

class_declaration_statement

@5

class_modifiers

anonymous_class_modifiers

anonymous_class_modifiers_optional

class_modifier

@6

trait_declaration_statement

@7

interface_declaration_statement

@8

enum_declaration_statement

enum_backing_type

enum_case

enum_case_expr

extends_from

interface_extends_list

implements_list

foreach_variable

for_statement

foreach_statement

declare_statement

switch_case_list

case_list

match

match_arm_list

non_empty_match_arm_list

match_arm

match_arm_cond_list

while_statement

if_stmt_without_else

if_stmt

alt_if_stmt_without_else

alt_if_stmt

parameter_list

non_empty_parameter_list

attributed_parameter

optional_cpp_modifiers

parameter

optional_type_without_static

type_expr

type

union_type_element

union_type

intersection_type

type_expr_without_static

type_without_static

union_type_without_static_element

union_type_without_static

intersection_type_without_static

return_type

argument_list

non_empty_argument_list

clone_argument_list

non_empty_clone_argument_list

argument_no_expr

argument

global_var_list

global_var

static_var_list

static_var

class_statement_list

attributed_class_statement

class_statement

class_name_list

trait_adaptations

trait_adaptation_list

trait_adaptation

trait_precedence

trait_alias

trait_method_reference

absolute_trait_method_reference

method_body

property_modifiers

method_modifiers

class_const_modifiers

non_empty_member_modifiers

member_modifier

property_list

property

hooked_property

property_hook_list

optional_property_hook_list

property_hook_modifiers

@9

property_hook

property_hook_body

optional_parameter_list

class_const_list

class_const_decl

const_decl

echo_expr_list

echo_expr

for_cond_exprs

for_exprs

non_empty_for_exprs

@10

anonymous_class

new_dereferenceable

new_non_dereferenceable

expr

inline_function

fn

function

backup_doc_comment

backup_fn_flags

backup_lex_pos

returns_ref

lexical_vars

lexical_var_list

lexical_var

function_call

@11

class_name

class_name_reference

backticks_expr

ctor_arguments

dereferenceable_scalar

scalar

constant

class_constant

optional_expr

variable_class_name

fully_dereferenceable

array_object_dereferenceable

callable_expr

callable_variable

variable

simple_variable

static_member

new_variable

member_name

property_name

array_pair_list

possible_array_pair

non_empty_array_pair_list

array_pair

encaps_list

encaps_var

encaps_var_offset

internal_functions_in_yacc

isset_variables

isset_variable

キーボード操作

/で検索、jとkで前後の規則へ移動、?でこのヘルプを表示します。Escapeで閉じます。