3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.32, 8.2.0 - 8.2.28, 8.3.0 - 8.3.19, 8.4.1 - 8.4.5
#1 ParseError: Unclosed '{' in /in/DXGtj(4) : eval()'d code:1
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
#1 ParseError: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in /in/DXGtj(4) : eval()'d code:1
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33
#1 Exception: in /in/DXGtj:7 #2 ParseError: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in /in/DXGtj(4) : eval()'d code:1
Output for 7.0.0 - 7.0.33
#1 Exception: in /in/DXGtj:7 #2 ParseError: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /in/DXGtj(4) : eval()'d code:1
Output for 5.6.38
Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /in/DXGtj(4) : eval()'d code on line 1 Fatal error: Uncaught exception 'Exception' in /in/DXGtj:7 Stack trace: #0 [internal function]: {closure}('Widget') #1 /in/DXGtj(11): spl_autoload_call('Widget') #2 {main} thrown in /in/DXGtj on line 7
Process exited with code 255.

preferences:
102.89 ms | 416 KiB | 5 Q