int(0)
After yield 0
Deprecated: Creation of dynamic property X::$id is deprecated in /in/lJjVg on line 4
Deprecated: Creation of dynamic property X::$gen is deprecated in /in/lJjVg on line 4
Deprecated: Creation of dynamic property X::$id is deprecated in /in/lJjVg on line 4
Deprecated: Creation of dynamic property X::$gen is deprecated in /in/lJjVg on line 4
object(X)#3 (2) {
["id"]=>
string(5) "value"
["gen"]=>
object(Generator)#1 (0) {
}
}
After yield X
int(12)
__destruct key
NULL
NULL
__destruct value
NULL
NULL
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
int(0)
After yield 0
Deprecated: Creation of dynamic property X::$id is deprecated in /in/lJjVg on line 4
Deprecated: Creation of dynamic property X::$gen is deprecated in /in/lJjVg on line 4
Deprecated: Creation of dynamic property X::$id is deprecated in /in/lJjVg on line 4
Deprecated: Creation of dynamic property X::$gen is deprecated in /in/lJjVg on line 4
object(X)#3 (2) {
["id"]=>
string(5) "value"
["gen"]=>
object(Generator)#1 (0) {
}
}
After yield X
int(12)
__destruct key
NULL
NULL
__destruct value
NULL
NULL