Deprecated: Return type of Foo::newInstance($arg = null, ...$args) should either be compatible with ReflectionClass::newInstance(mixed ...$args): object, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/eeVf8 on line 5
object(Exception)#2 (7) {
["message":protected]=>
string(4) "Test"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(9) "/in/eeVf8"
["line":protected]=>
int(8)
["trace":"Exception":private]=>
array(2) {
[0]=>
array(6) {
["file"]=>
string(9) "/in/eeVf8"
["line"]=>
int(8)
["function"]=>
string(11) "newInstance"
["class"]=>
string(15) "ReflectionClass"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(4) "Test"
[1]=>
int(0)
}
}
[1]=>
array(6) {
["file"]=>
string(9) "/in/eeVf8"
["line"]=>
int(13)
["function"]=>
string(11) "newInstance"
["class"]=>
string(3) "Foo"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(4) "Test"
[1]=>
int(0)
}
}
}
["previous":"Exception":private]=>
NULL
}
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Parse error: syntax error, unexpected '.', expecting '&' or T_VARIABLE in /in/eeVf8 on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected '.', expecting '&' or T_VARIABLE in /in/eeVf8 on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/eeVf8 on line 5
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/eeVf8 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/eeVf8 on line 5
Process exited with code 255.