Fatal error: Uncaught TypeError: Return value of foo() must be an instance of object or null, instance of stdClass returned in /in/V6HDj:5
Stack trace:
#0 /in/V6HDj(13): foo()
#1 {main}
thrown in /in/V6HDj on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.33
Parse error: syntax error, unexpected '?' in /in/V6HDj on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.40
Parse error: syntax error, unexpected ':', expecting '{' in /in/V6HDj on line 3
Process exited with code 255.