string(1) "A"
string(1) "B"
bool(true)
object(ReflectionClass)#4 (1) {
["name"]=>
string(1) "A"
}
object(ReflectionClass)#4 (1) {
["name"]=>
string(1) "B"
}
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.
Output for 8.1.0 - 8.1.10
string(1) "A"
string(1) "B"
bool(true)
object(ReflectionClass)#4 (1) {
["name"]=>
string(1) "A"
}
Fatal error: Uncaught Error: Call to undefined method ReflectionFunction::getClosureCalledClass() in /in/JOphS:21
Stack trace:
#0 {main}
thrown in /in/JOphS on line 21
Process exited with code 255.