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--
12Parse error: syntax error, unexpected token "foreach", expecting "]" in %s on line %d
13