1--TEST--
2New with anonymous class is not supported in constant expressions
3--FILE--
4<?php
5
6static $x = new class {};
7
8?>
9--EXPECTF--
10Fatal error: Cannot use anonymous class in constant expression in %s on line %d
11