Deprecated: A::foo(): Implicitly marking parameter $foo as nullable is deprecated, the explicit nullable type must be used instead in /in/int0g on line 4
bool(false)
bool(true)
string(8) "?PDO foo"
bool(true)
bool(false)
string(9) "array bar"
bool(true)
bool(false)
string(5) "int x"
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.
Deprecated: Function ReflectionType::__toString() is deprecated in /in/int0g on line 14
bool(false)
bool(true)
string(7) "PDO foo"
Deprecated: Function ReflectionType::__toString() is deprecated in /in/int0g on line 14
bool(true)
bool(false)
string(9) "array bar"
Deprecated: Function ReflectionType::__toString() is deprecated in /in/int0g on line 14
bool(true)
bool(false)
string(5) "int x"