on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(0)
int(0)
unsetting second element....
array(1) {
[0]=>
string(1) "f"
}
after loop:
int(0)
string(1) "f"
after reset:
int(0)
string(1) "f"
after end:
int(0)
string(1) "f"
trying to trigger "Undefined index: " error: with NULL key
Warning: Undefined array key "" in /in/5mnAt on line 40
trying to trigger "Undefined index: " error: with empty string key
Warning: Undefined array key "" in /in/5mnAt on line 43
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(0)
int(0)
unsetting second element....
array(1) {
[0]=>
string(1) "f"
}
after loop:
int(0)
string(1) "f"
after reset:
int(0)
string(1) "f"
after end:
int(0)
string(1) "f"
trying to trigger "Undefined index: " error: with NULL key
Notice: Undefined index: in /in/5mnAt on line 40
trying to trigger "Undefined index: " error: with empty string key
Notice: Undefined index: in /in/5mnAt on line 43
Output for 7.3.32 - 7.3.33, 7.4.26
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(0)
int(0)
unsetting second element....
array(1) {
[0]=>
string(1) "f"
}
after loop:
int(0)
string(1) "f"
after reset:
int(0)
string(1) "f"
after end:
int(0)
string(1) "f"
trying to trigger "Undefined index: " error: with NULL key
trying to trigger "Undefined index: " error: with empty string key
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(1)
int(1)
unsetting second element....
array(1) {
[0]=>
string(1) "f"
}
after loop:
NULL
bool(false)
after reset:
int(0)
string(1) "f"
after end:
int(0)
string(1) "f"
trying to trigger "Undefined index: " error: with NULL key
Notice: Undefined index: in /in/5mnAt on line 40
trying to trigger "Undefined index: " error: with empty string key
Notice: Undefined index: in /in/5mnAt on line 43
Output for 5.2.4 - 5.2.17
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(1)
int(1)
unsetting second element....
array(1) {
[0]=>
string(1) "f"
}
after loop:
NULL
bool(false)
after reset:
int(0)
string(1) "f"
after end:
int(0)
string(1) "f"
trying to trigger "Undefined index: " error: with NULL key
Notice: Undefined index: in /in/5mnAt on line 40
trying to trigger "Undefined index: " error: with empty string key
Notice: Undefined index: in /in/5mnAt on line 43
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(0)
int(0)
unsetting second element....
array(1) {
[0]=>
string(1) "f"
}
after loop:
int(0)
string(1) "f"
after reset:
int(0)
string(1) "f"
after end:
int(0)
string(1) "f"
trying to trigger "Undefined index: " error: with NULL key
Notice: Undefined index: in /in/5mnAt on line 40
trying to trigger "Undefined index: " error: with empty string key
Notice: Undefined index: in /in/5mnAt on line 43
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 3
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 3
PHP_EOL on empty array: PHP_EOLNULL
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 7
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 7
PHP_EOL size one array: PHP_EOLint(0)
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 11
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 11
PHP_EOL size two array: PHP_EOLint(0)
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 14
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 14
PHP_EOL within loop: PHP_EOLint(0)
int(0)
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 18
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 18
PHP_EOL unsetting second element.... PHP_EOLarray(1) {
[0]=>
string(1) "f"
}
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 25
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 25
PHP_EOL after loop: PHP_EOLint(0)
string(1) "f"
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 30
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 30
PHP_EOL after reset: PHP_EOLint(0)
string(1) "f"
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 35
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 35
PHP_EOL after end: PHP_EOLint(0)
string(1) "f"
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 39
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 39
PHP_EOL trying to trigger "Undefined index: " error: with NULL keyPHP_EOL
Notice: Undefined index: in /in/5mnAt on line 40
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 42
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/5mnAt on line 42
PHP_EOL trying to trigger "Undefined index: " error: with empty string keyPHP_EOL
Notice: Undefined index: in /in/5mnAt on line 43
Output for 4.4.1
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(1)
NULL
unsetting second element....
array(1) {
[0]=>
string(1) "f"
}
after loop:
int(0)
string(1) "f"
after reset:
int(0)
string(1) "f"
after end:
int(0)
string(1) "f"
trying to trigger "Undefined index: " error: with NULL key
Notice: Undefined index: in /in/5mnAt on line 40
trying to trigger "Undefined index: " error: with empty string key
Notice: Undefined index: in /in/5mnAt on line 43