it works
Warning: Cannot unbind $this of closure using $this, this will be an error in PHP 9 in /in/3OKGT on line 76
object(Error)#2 (7) {
["message":protected]=>
string(34) "Value of type null is not callable"
["string":"Error":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(9) "/in/3OKGT"
["line":protected]=>
int(76)
["trace":"Error":private]=>
array(0) {
}
["previous":"Error":private]=>
NULL
}
array(2) {
[0]=>
string(3) "foo"
[1]=>
string(3) "bar"
}
object(Collection)#8 (1) {
["items":"Collection":private]=>
array(11) {
[0]=>
int(0)
[1]=>
int(1)
[2]=>
int(2)
[3]=>
int(3)
[4]=>
int(4)
[5]=>
int(5)
[6]=>
int(6)
[7]=>
int(7)
[8]=>
int(8)
[9]=>
int(9)
[10]=>
int(10)
}
}
object(Collection)#7 (1) {
["items":"Collection":private]=>
array(11) {
[0]=>
int(0)
[1]=>
int(1)
[2]=>
int(2)
[3]=>
int(3)
[4]=>
int(4)
[5]=>
int(5)
[6]=>
int(6)
[7]=>
int(7)
[8]=>
int(8)
[9]=>
int(9)
[10]=>
int(10)
}
}
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.