1Anonymous classes 2----- 3<?php 4new class 5($x) 6 extends X 7{ }; 8----- 9$new = $stmts[0]->expr; 10$new->class->extends = null; 11$new->args[] = new Expr\Variable('y'); 12----- 13<?php 14new class 15($x, $y) 16{ }; 17----- 18<?php 19new class 20{}; 21----- 22// Ignore name assigned to anon class 23$new = $stmts[0]->expr; 24$new->class->name = new Node\Identifier('Anon1'); 25----- 26<?php 27new class 28{};