1Conditional class definition 2----- 3<?php 4 5if (true) { 6 class A {} 7} 8----- 9array( 10 0: Stmt_If( 11 cond: Expr_ConstFetch( 12 name: Name( 13 name: true 14 ) 15 ) 16 stmts: array( 17 0: Stmt_Class( 18 attrGroups: array( 19 ) 20 flags: 0 21 name: Identifier( 22 name: A 23 ) 24 extends: null 25 implements: array( 26 ) 27 stmts: array( 28 ) 29 ) 30 ) 31 elseifs: array( 32 ) 33 else: null 34 ) 35) 36