Fatal error: Uncaught TypeError: Return value of test() must be an instance of object, instance of Foo returned in /in/WCfQR:22
Stack trace:
#0 /in/WCfQR(25): test('Foo')
#1 {main}
thrown in /in/WCfQR on line 22
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Warning: Unsupported declare 'strict_types' in /in/WCfQR on line 3
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/WCfQR on line 8
Process exited with code 255.