- Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.30, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14
- bool(true)
bool(true)
bool(false)
bool(false)
string(3) "RED"
string(5) "GREEN"
bool(true)
array(3) {
["RED"]=>
object(Color)#1 (1) {
["name":"Enum":private]=>
string(3) "RED"
}
["GREEN"]=>
object(Color)#2 (1) {
["name":"Enum":private]=>
string(5) "GREEN"
}
["BLUE"]=>
object(Color)#3 (1) {
["name":"Enum":private]=>
string(4) "BLUE"
}
}
TypeError: Undefined enum Color::GEERN()
Exception: Do not invoke methods directly on class Enum.
- Output for 5.6.38 - 5.6.40
- Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/ZQhMn on line 14
Process exited with code 255.