List Each
Fatal error: Uncaught Error: Call to undefined function each() in /in/8vie4:17
Stack trace:
#0 {main}
thrown in /in/8vie4 on line 17
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.
List Each
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/8vie4 on line 17
string(6) "value1"
string(6) "value3"
Array Shift
string(6) "value1"
string(6) "value3"
Current Next
string(6) "value1"
string(6) "value3"
Current Next w/key
string(4) "key1"
string(6) "value1"
string(4) "key3"
string(6) "value3"
Output for 5.6.38, 7.1.0 - 7.1.23, 7.3.32 - 7.3.33
List Each
string(6) "value1"
string(6) "value3"
Array Shift
string(6) "value1"
string(6) "value3"
Current Next
string(6) "value1"
string(6) "value3"
Current Next w/key
string(4) "key1"
string(6) "value1"
string(4) "key3"
string(6) "value3"