1Expressions in list() 2----- 3<?php 4 5// This is legal. 6list(($a), ((($b)))) = $x; 7// This is illegal, but not a syntax error. 8list(1 + 1) = $x; 9----- 10array( 11 0: Stmt_Expression( 12 expr: Expr_Assign( 13 var: Expr_List( 14 items: array( 15 0: ArrayItem( 16 key: null 17 value: Expr_Variable( 18 name: a 19 ) 20 byRef: false 21 unpack: false 22 ) 23 1: ArrayItem( 24 key: null 25 value: Expr_Variable( 26 name: b 27 ) 28 byRef: false 29 unpack: false 30 ) 31 ) 32 ) 33 expr: Expr_Variable( 34 name: x 35 ) 36 ) 37 comments: array( 38 0: // This is legal. 39 ) 40 ) 41 1: Stmt_Expression( 42 expr: Expr_Assign( 43 var: Expr_List( 44 items: array( 45 0: ArrayItem( 46 key: null 47 value: Expr_BinaryOp_Plus( 48 left: Scalar_Int( 49 value: 1 50 ) 51 right: Scalar_Int( 52 value: 1 53 ) 54 ) 55 byRef: false 56 unpack: false 57 ) 58 ) 59 ) 60 expr: Expr_Variable( 61 name: x 62 ) 63 ) 64 comments: array( 65 0: // This is illegal, but not a syntax error. 66 ) 67 ) 68) 69