- Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected 'ABC' (T_STRING), expecting variable (T_VARIABLE) in /in/mjeH9 on line 5
Process exited with code 255.
<?php
class HttpStatus
{
public static ABC = 'abc';
public static DEF = 'def';
}
$abd = 'ABC';
$def = 'DEF';
echo HttpStatus::$abc;
echo HttpStatus::${'ABC'};