1--TEST--
2Class public constant visibility
3--FILE--
4<?php
5class A {
6	public const publicConst = 'publicConst';
7	static function staticConstDump() {
8		var_dump(self::publicConst);
9	}
10	function constDump() {
11		var_dump(self::publicConst);
12	}
13}
14
15var_dump(A::publicConst);
16A::staticConstDump();
17(new A())->constDump();
18
19?>
20--EXPECTF--
21string(11) "publicConst"
22string(11) "publicConst"
23string(11) "publicConst"
24