1--TEST--
2Testing for regression on const list syntax and arrays
3--FILE--
4<?php
5
6class A {
7    const A = [1, FOREACH];
8}
9
10?>
11--EXPECTF--
12
13Parse error: syntax error, unexpected 'FOREACH' (T_FOREACH), expecting ']' in %s on line %d
14