- Output for 8.1.30 - 8.1.33, 8.2.21 - 8.2.29, 8.3.5 - 8.3.25, 8.4.1 - 8.4.12
- object(Foo)#1 (7) { ["message":protected]=> string(5) "Hello" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(100) ["file":protected]=> string(9) "/in/UX1Pa" ["line":protected]=> int(12) ["trace":"Exception":private]=> array(0) { } ["previous":"Exception":private]=> NULL }
- Output for 7.4.0 - 7.4.23, 8.0.0 - 8.0.9
- Fatal error: Type of Foo::$file must not be defined (as in class Exception) in /in/UX1Pa on line 9
Process exited with code 255. - Output for 7.3.0 - 7.3.30
- Parse error: syntax error, unexpected 'int' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /in/UX1Pa on line 7
Process exited with code 255.