string(1) "a"
--------aaaaaa--------
string(1) "c"
bool(false)
--------bbbbbbb--------
bool(false)
bool(false)
Fatal error: Uncaught Error: Call to undefined function each() in /in/dGZbf:14
Stack trace:
#0 {main}
thrown in /in/dGZbf on line 14
Process exited with code 255.
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.
string(1) "a"
--------aaaaaa--------
string(1) "c"
bool(false)
--------bbbbbbb--------
bool(false)
bool(false)
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/dGZbf on line 14
array(4) {
[1]=>
string(1) "a"
["value"]=>
string(1) "a"
[0]=>
int(0)
["key"]=>
int(0)
}
array(4) {
[1]=>
string(1) "b"
["value"]=>
string(1) "b"
[0]=>
int(1)
["key"]=>
int(1)
}
array(4) {
[1]=>
string(1) "c"
["value"]=>
string(1) "c"
[0]=>
int(2)
["key"]=>
int(2)
}
--------cccccccc--------