Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
tests /
lang /
Delete
Unzip
Name
Size
Permission
Date
Action
constants
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
include_files
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
operators
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
string
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
001.phpt
98
B
-rw-rw-r--
2022-10-31 11:36
002.phpt
112
B
-rw-rw-r--
2022-10-31 11:36
003.phpt
181
B
-rw-rw-r--
2022-10-31 11:36
004.phpt
119
B
-rw-rw-r--
2022-10-31 11:36
005.phpt
158
B
-rw-rw-r--
2022-10-31 11:36
006.phpt
238
B
-rw-rw-r--
2022-10-31 11:36
007.phpt
323
B
-rw-rw-r--
2022-10-31 11:36
008.phpt
176
B
-rw-rw-r--
2022-10-31 11:36
009.phpt
125
B
-rw-rw-r--
2022-10-31 11:36
010.phpt
161
B
-rw-rw-r--
2022-10-31 11:36
011.phpt
212
B
-rw-rw-r--
2022-10-31 11:36
012.phpt
182
B
-rw-rw-r--
2022-10-31 11:36
013.phpt
118
B
-rw-rw-r--
2022-10-31 11:36
014.phpt
169
B
-rw-rw-r--
2022-10-31 11:36
015.inc
24
B
-rw-rw-r--
2022-10-31 11:36
015.phpt
79
B
-rw-rw-r--
2022-10-31 11:36
016.inc
44
B
-rw-rw-r--
2022-10-31 11:36
016.phpt
127
B
-rw-rw-r--
2022-10-31 11:36
017.phpt
209
B
-rw-rw-r--
2022-10-31 11:36
018.phpt
222
B
-rw-rw-r--
2022-10-31 11:36
019.phpt
1.1
KB
-rw-rw-r--
2022-10-31 11:36
020.phpt
1.05
KB
-rw-rw-r--
2022-10-31 11:36
021.phpt
518
B
-rw-rw-r--
2022-10-31 11:36
022.phpt
490
B
-rw-rw-r--
2022-10-31 11:36
023-1.inc
7.7
KB
-rw-rw-r--
2022-10-31 11:36
023-2.inc
179
B
-rw-rw-r--
2022-10-31 11:36
023.phpt
5.3
KB
-rw-rw-r--
2022-10-31 11:36
024.phpt
198.07
KB
-rw-rw-r--
2022-10-31 11:36
025.phpt
6.45
KB
-rw-rw-r--
2022-10-31 11:36
026.phpt
120
B
-rw-rw-r--
2022-10-31 11:36
027.phpt
107
B
-rw-rw-r--
2022-10-31 11:36
028.phpt
8.95
KB
-rw-rw-r--
2022-10-31 11:36
030.phpt
646
B
-rw-rw-r--
2022-10-31 11:36
031.phpt
1.6
KB
-rw-rw-r--
2022-10-31 11:36
032.phpt
377
B
-rw-rw-r--
2022-10-31 11:36
033.phpt
520
B
-rw-rw-r--
2022-10-31 11:36
034.phpt
464
B
-rw-rw-r--
2022-10-31 11:36
035.phpt
625
B
-rw-rw-r--
2022-10-31 11:36
036.phpt
352
B
-rw-rw-r--
2022-10-31 11:36
037.phpt
314
B
-rw-rw-r--
2022-10-31 11:36
038.phpt
743
B
-rw-rw-r--
2022-10-31 11:36
039.phpt
681
B
-rw-rw-r--
2022-10-31 11:36
040.phpt
153
B
-rw-rw-r--
2022-10-31 11:36
041.phpt
364
B
-rw-rw-r--
2022-10-31 11:36
042.phpt
344
B
-rw-rw-r--
2022-10-31 11:36
043.phpt
379
B
-rw-rw-r--
2022-10-31 11:36
044.phpt
444
B
-rw-rw-r--
2022-10-31 11:36
045.phpt
513
B
-rw-rw-r--
2022-10-31 11:36
array_shortcut_001.phpt
142
B
-rw-rw-r--
2022-10-31 11:36
array_shortcut_002.phpt
219
B
-rw-rw-r--
2022-10-31 11:36
array_shortcut_003.phpt
165
B
-rw-rw-r--
2022-10-31 11:36
array_shortcut_005.phpt
314
B
-rw-rw-r--
2022-10-31 11:36
bison1.phpt
116
B
-rw-rw-r--
2022-10-31 11:36
bug17115.phpt
318
B
-rw-rw-r--
2022-10-31 11:36
bug18872.phpt
205
B
-rw-rw-r--
2022-10-31 11:36
bug19566.phpt
180
B
-rw-rw-r--
2022-10-31 11:36
bug19943.phpt
433
B
-rw-rw-r--
2022-10-31 11:36
bug20175.phpt
3.72
KB
-rw-rw-r--
2022-10-31 11:36
bug21094.phpt
384
B
-rw-rw-r--
2022-10-31 11:36
bug21600.phpt
688
B
-rw-rw-r--
2022-10-31 11:36
bug21669.phpt
363
B
-rw-rw-r--
2022-10-31 11:36
bug21820.phpt
283
B
-rw-rw-r--
2022-10-31 11:36
bug21849.phpt
224
B
-rw-rw-r--
2022-10-31 11:36
bug21961.phpt
725
B
-rw-rw-r--
2022-10-31 11:36
bug22231.phpt
676
B
-rw-rw-r--
2022-10-31 11:36
bug22510.phpt
2.13
KB
-rw-rw-r--
2022-10-31 11:36
bug22592.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
bug22690.phpt
283
B
-rw-rw-r--
2022-10-31 11:36
bug23279.phpt
310
B
-rw-rw-r--
2022-10-31 11:36
bug23384.phpt
539
B
-rw-rw-r--
2022-10-31 11:36
bug23489.phpt
300
B
-rw-rw-r--
2022-10-31 11:36
bug23524.phpt
340
B
-rw-rw-r--
2022-10-31 11:36
bug23584.phpt
196
B
-rw-rw-r--
2022-10-31 11:36
bug23624.phpt
261
B
-rw-rw-r--
2022-10-31 11:36
bug23922.phpt
422
B
-rw-rw-r--
2022-10-31 11:36
bug24054.phpt
436
B
-rw-rw-r--
2022-10-31 11:36
bug24396.phpt
283
B
-rw-rw-r--
2022-10-31 11:36
bug24436.phpt
303
B
-rw-rw-r--
2022-10-31 11:36
bug24499.phpt
355
B
-rw-rw-r--
2022-10-31 11:36
bug24573.phpt
318
B
-rw-rw-r--
2022-10-31 11:36
bug24640.phpt
1.49
KB
-rw-rw-r--
2022-10-31 11:36
bug24652.phpt
490
B
-rw-rw-r--
2022-10-31 11:36
bug24658.phpt
1.11
KB
-rw-rw-r--
2022-10-31 11:36
bug24783.phpt
318
B
-rw-rw-r--
2022-10-31 11:36
bug24908.phpt
288
B
-rw-rw-r--
2022-10-31 11:36
bug24926.phpt
541
B
-rw-rw-r--
2022-10-31 11:36
bug24951.phpt
768
B
-rw-rw-r--
2022-10-31 11:36
bug25145.phpt
235
B
-rw-rw-r--
2022-10-31 11:36
bug25547.phpt
409
B
-rw-rw-r--
2022-10-31 11:36
bug25652.phpt
328
B
-rw-rw-r--
2022-10-31 11:36
bug25922.phpt
486
B
-rw-rw-r--
2022-10-31 11:36
bug26182.phpt
288
B
-rw-rw-r--
2022-10-31 11:36
bug26696.phpt
352
B
-rw-rw-r--
2022-10-31 11:36
bug26866.phpt
374
B
-rw-rw-r--
2022-10-31 11:36
bug26869.phpt
213
B
-rw-rw-r--
2022-10-31 11:36
bug27354.phpt
229
B
-rw-rw-r--
2022-10-31 11:36
bug27439.phpt
1.25
KB
-rw-rw-r--
2022-10-31 11:36
bug27443.phpt
119
B
-rw-rw-r--
2022-10-31 11:36
bug27535.phpt
326
B
-rw-rw-r--
2022-10-31 11:36
bug28213.phpt
260
B
-rw-rw-r--
2022-10-31 11:36
bug28800.phpt
616
B
-rw-rw-r--
2022-10-31 11:36
bug29566.phpt
351
B
-rw-rw-r--
2022-10-31 11:36
bug29893.phpt
216
B
-rw-rw-r--
2022-10-31 11:36
bug29944.phpt
264
B
-rw-rw-r--
2022-10-31 11:36
bug30578.phpt
567
B
-rw-rw-r--
2022-10-31 11:36
bug30638.phpt
687
B
-rw-rw-r--
2022-10-31 11:36
bug30726.phpt
140
B
-rw-rw-r--
2022-10-31 11:36
bug30862.phpt
383
B
-rw-rw-r--
2022-10-31 11:36
bug32828.phpt
417
B
-rw-rw-r--
2022-10-31 11:36
bug32924.phpt
234
B
-rw-rw-r--
2022-10-31 11:36
bug35176.phpt
641
B
-rw-rw-r--
2022-10-31 11:36
bug35382.phpt
176
B
-rw-rw-r--
2022-10-31 11:36
bug38579.inc
22
B
-rw-rw-r--
2022-10-31 11:36
bug38579.phpt
286
B
-rw-rw-r--
2022-10-31 11:36
bug43958.phpt
512
B
-rw-rw-r--
2022-10-31 11:36
bug44654.phpt
132
B
-rw-rw-r--
2022-10-31 11:36
bug44827.phpt
357
B
-rw-rw-r--
2022-10-31 11:36
bug45392.phpt
437
B
-rw-rw-r--
2022-10-31 11:36
bug55754.phpt
223
B
-rw-rw-r--
2022-10-31 11:36
bug71897.phpt
362
B
-rw-rw-r--
2022-10-31 11:36
bug73172.inc
89
B
-rw-rw-r--
2022-10-31 11:36
bug73172.phpt
203
B
-rw-rw-r--
2022-10-31 11:36
bug73329.phpt
212
B
-rw-rw-r--
2022-10-31 11:36
bug7515.phpt
484
B
-rw-rw-r--
2022-10-31 11:36
catchable_error_001.phpt
530
B
-rw-rw-r--
2022-10-31 11:36
catchable_error_002.phpt
455
B
-rw-rw-r--
2022-10-31 11:36
comments.phpt
230
B
-rw-rw-r--
2022-10-31 11:36
comments2.phpt
87
B
-rw-rw-r--
2022-10-31 11:36
compare_objects_basic1.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
compare_objects_basic2.phpt
463
B
-rw-rw-r--
2022-10-31 11:36
each_binary_safety.phpt
414
B
-rw-rw-r--
2022-10-31 11:36
empty_variation.phpt
208
B
-rw-rw-r--
2022-10-31 11:36
engine_assignExecutionOrder_001.phpt
2.44
KB
-rw-rw-r--
2022-10-31 11:36
engine_assignExecutionOrder_002.phpt
2.44
KB
-rw-rw-r--
2022-10-31 11:36
engine_assignExecutionOrder_003.phpt
1.12
KB
-rw-rw-r--
2022-10-31 11:36
engine_assignExecutionOrder_004.phpt
482
B
-rw-rw-r--
2022-10-31 11:36
engine_assignExecutionOrder_005.phpt
780
B
-rw-rw-r--
2022-10-31 11:36
engine_assignExecutionOrder_006.phpt
1.34
KB
-rw-rw-r--
2022-10-31 11:36
engine_assignExecutionOrder_007.phpt
565
B
-rw-rw-r--
2022-10-31 11:36
engine_assignExecutionOrder_008.phpt
1.68
KB
-rw-rw-r--
2022-10-31 11:36
engine_assignExecutionOrder_009.phpt
684
B
-rw-rw-r--
2022-10-31 11:36
error_2_exception_001.phpt
924
B
-rw-rw-r--
2022-10-31 11:36
execution_order.phpt
2.12
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoop.001.phpt
944
B
-rw-rw-r--
2022-10-31 11:36
foreachLoop.002.phpt
3.08
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoop.003.phpt
730
B
-rw-rw-r--
2022-10-31 11:36
foreachLoop.004.phpt
826
B
-rw-rw-r--
2022-10-31 11:36
foreachLoop.005.phpt
812
B
-rw-rw-r--
2022-10-31 11:36
foreachLoop.006.phpt
224
B
-rw-rw-r--
2022-10-31 11:36
foreachLoop.009.phpt
2
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoop.010.phpt
1.13
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoop.011.phpt
482
B
-rw-rw-r--
2022-10-31 11:36
foreachLoop.012.phpt
8.55
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoop.013.phpt
9.67
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoop.014.phpt
8.76
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoop.015.phpt
9.87
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoop.016.phpt
3.45
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoop.017.phpt
181
B
-rw-rw-r--
2022-10-31 11:36
foreachLoopIterator.001.phpt
2.77
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoopIterator.002.phpt
592
B
-rw-rw-r--
2022-10-31 11:36
foreachLoopIteratorAggregate.001.phpt
6.69
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoopIteratorAggregate.002.phpt
1.07
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoopIteratorAggregate.003.phpt
3.03
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoopIteratorAggregate.004.phpt
1.66
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoopObjects.001.phpt
1.21
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoopObjects.002.phpt
11.34
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoopObjects.003.phpt
4.95
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoopObjects.004.phpt
1
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoopObjects.005.phpt
1.46
KB
-rw-rw-r--
2022-10-31 11:36
foreachLoopObjects.006.phpt
2.18
KB
-rw-rw-r--
2022-10-31 11:36
foreach_with_object_001.phpt
308
B
-rw-rw-r--
2022-10-31 11:36
foreach_with_references_001.phpt
351
B
-rw-rw-r--
2022-10-31 11:36
func_get_arg.001.phpt
140
B
-rw-rw-r--
2022-10-31 11:36
func_get_arg.002.phpt
212
B
-rw-rw-r--
2022-10-31 11:36
func_get_arg.003.phpt
222
B
-rw-rw-r--
2022-10-31 11:36
func_get_arg.004.phpt
234
B
-rw-rw-r--
2022-10-31 11:36
func_get_arg.005.phpt
391
B
-rw-rw-r--
2022-10-31 11:36
func_get_arg_variation.phpt
640
B
-rw-rw-r--
2022-10-31 11:36
func_get_args.001.phpt
134
B
-rw-rw-r--
2022-10-31 11:36
func_get_args.002.phpt
210
B
-rw-rw-r--
2022-10-31 11:36
func_get_args.003.phpt
235
B
-rw-rw-r--
2022-10-31 11:36
func_get_args.004.phpt
1017
B
-rw-rw-r--
2022-10-31 11:36
func_num_args.001.phpt
128
B
-rw-rw-r--
2022-10-31 11:36
func_num_args.002.phpt
153
B
-rw-rw-r--
2022-10-31 11:36
func_num_args.003.phpt
221
B
-rw-rw-r--
2022-10-31 11:36
func_num_args.004.phpt
722
B
-rw-rw-r--
2022-10-31 11:36
inc.inc
29
B
-rw-rw-r--
2022-10-31 11:36
inc_throw.inc
34
B
-rw-rw-r--
2022-10-31 11:36
include_variation1.phpt
119
B
-rw-rw-r--
2022-10-31 11:36
include_variation2.phpt
174
B
-rw-rw-r--
2022-10-31 11:36
include_variation3.phpt
153
B
-rw-rw-r--
2022-10-31 11:36
invalid_octal.phpt
113
B
-rw-rw-r--
2022-10-31 11:36
passByReference_001.phpt
375
B
-rw-rw-r--
2022-10-31 11:36
passByReference_002.phpt
202
B
-rw-rw-r--
2022-10-31 11:36
passByReference_003.phpt
826
B
-rw-rw-r--
2022-10-31 11:36
passByReference_004.phpt
269
B
-rw-rw-r--
2022-10-31 11:36
passByReference_005.phpt
4.84
KB
-rw-rw-r--
2022-10-31 11:36
passByReference_006.phpt
5.87
KB
-rw-rw-r--
2022-10-31 11:36
passByReference_007.phpt
1.92
KB
-rw-rw-r--
2022-10-31 11:36
passByReference_008.phpt
582
B
-rw-rw-r--
2022-10-31 11:36
passByReference_009.phpt
318
B
-rw-rw-r--
2022-10-31 11:36
passByReference_010.phpt
1.16
KB
-rw-rw-r--
2022-10-31 11:36
passByReference_012.phpt
620
B
-rw-rw-r--
2022-10-31 11:36
returnByReference.001.phpt
207
B
-rw-rw-r--
2022-10-31 11:36
returnByReference.002.phpt
484
B
-rw-rw-r--
2022-10-31 11:36
returnByReference.003.phpt
1.25
KB
-rw-rw-r--
2022-10-31 11:36
returnByReference.004.phpt
1.3
KB
-rw-rw-r--
2022-10-31 11:36
returnByReference.005.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
returnByReference.006.phpt
1.58
KB
-rw-rw-r--
2022-10-31 11:36
returnByReference.007.phpt
1.65
KB
-rw-rw-r--
2022-10-31 11:36
returnByReference.008.phpt
1.65
KB
-rw-rw-r--
2022-10-31 11:36
returnByReference.009.phpt
696
B
-rw-rw-r--
2022-10-31 11:36
short_tags.001.phpt
142
B
-rw-rw-r--
2022-10-31 11:36
short_tags.002.phpt
160
B
-rw-rw-r--
2022-10-31 11:36
short_tags.004.phpt
382
B
-rw-rw-r--
2022-10-31 11:36
static_basic_001.phpt
1.46
KB
-rw-rw-r--
2022-10-31 11:36
static_basic_002.phpt
262
B
-rw-rw-r--
2022-10-31 11:36
static_variation_001.phpt
1.12
KB
-rw-rw-r--
2022-10-31 11:36
static_variation_002.phpt
972
B
-rw-rw-r--
2022-10-31 11:36
string_decimals_001.phpt
536
B
-rw-rw-r--
2022-10-31 11:36
this_assignment.phpt
583
B
-rw-rw-r--
2022-10-31 11:36
throw_variation_001.phpt
195
B
-rw-rw-r--
2022-10-31 11:36
type_hints_001.phpt
450
B
-rw-rw-r--
2022-10-31 11:36
type_hints_002.phpt
224
B
-rw-rw-r--
2022-10-31 11:36
type_hints_003.phpt
199
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Directly modifying a REFERENCED array when foreach'ing over it. --FILE-- <?php define('MAX_LOOPS',5); function withRefValue($elements, $transform) { echo "\n---( Array with $elements element(s): )---\n"; //Build array: for ($i=0; $i<$elements; $i++) { $a[] = "v.$i"; } $counter=0; $ref = &$a; echo "--> State of referenced array before loop:\n"; var_dump($a); echo "--> Do loop:\n"; foreach ($a as $k=>$v) { echo " iteration $counter: \$k=$k; \$v=$v\n"; eval($transform); $counter++; if ($counter>MAX_LOOPS) { echo " ** Stuck in a loop! **\n"; break; } } echo "--> State of array after loop:\n"; var_dump($a); } echo "\nPopping elements off end of a referenced array"; $transform = 'array_pop($a);'; withRefValue(1, $transform); withRefValue(2, $transform); withRefValue(3, $transform); withRefValue(4, $transform); echo "\n\n\nShift elements off start of a referenced array"; $transform = 'array_shift($a);'; withRefValue(1, $transform); withRefValue(2, $transform); withRefValue(3, $transform); withRefValue(4, $transform); echo "\n\n\nRemove current element of a referenced array"; $transform = 'unset($a[$k]);'; withRefValue(1, $transform); withRefValue(2, $transform); withRefValue(3, $transform); withRefValue(4, $transform); echo "\n\n\nAdding elements to the end of a referenced array"; $transform = 'array_push($a, "new.$counter");'; withRefValue(1, $transform); withRefValue(2, $transform); withRefValue(3, $transform); withRefValue(4, $transform); echo "\n\n\nAdding elements to the start of a referenced array"; $transform = 'array_unshift($a, "new.$counter");'; withRefValue(1, $transform); withRefValue(2, $transform); withRefValue(3, $transform); withRefValue(4, $transform); ?> --EXPECT-- Popping elements off end of a referenced array ---( Array with 1 element(s): )--- --> State of referenced array before loop: array(1) { [0]=> string(3) "v.0" } --> Do loop: iteration 0: $k=0; $v=v.0 --> State of array after loop: array(0) { } ---( Array with 2 element(s): )--- --> State of referenced array before loop: array(2) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 --> State of array after loop: array(0) { } ---( Array with 3 element(s): )--- --> State of referenced array before loop: array(3) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 iteration 2: $k=2; $v=v.2 --> State of array after loop: array(0) { } ---( Array with 4 element(s): )--- --> State of referenced array before loop: array(4) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" [3]=> string(3) "v.3" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 iteration 2: $k=2; $v=v.2 iteration 3: $k=3; $v=v.3 --> State of array after loop: array(0) { } Shift elements off start of a referenced array ---( Array with 1 element(s): )--- --> State of referenced array before loop: array(1) { [0]=> string(3) "v.0" } --> Do loop: iteration 0: $k=0; $v=v.0 --> State of array after loop: array(0) { } ---( Array with 2 element(s): )--- --> State of referenced array before loop: array(2) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 --> State of array after loop: array(0) { } ---( Array with 3 element(s): )--- --> State of referenced array before loop: array(3) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 iteration 2: $k=2; $v=v.2 --> State of array after loop: array(0) { } ---( Array with 4 element(s): )--- --> State of referenced array before loop: array(4) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" [3]=> string(3) "v.3" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 iteration 2: $k=2; $v=v.2 iteration 3: $k=3; $v=v.3 --> State of array after loop: array(0) { } Remove current element of a referenced array ---( Array with 1 element(s): )--- --> State of referenced array before loop: array(1) { [0]=> string(3) "v.0" } --> Do loop: iteration 0: $k=0; $v=v.0 --> State of array after loop: array(0) { } ---( Array with 2 element(s): )--- --> State of referenced array before loop: array(2) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 --> State of array after loop: array(0) { } ---( Array with 3 element(s): )--- --> State of referenced array before loop: array(3) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 iteration 2: $k=2; $v=v.2 --> State of array after loop: array(0) { } ---( Array with 4 element(s): )--- --> State of referenced array before loop: array(4) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" [3]=> string(3) "v.3" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 iteration 2: $k=2; $v=v.2 iteration 3: $k=3; $v=v.3 --> State of array after loop: array(0) { } Adding elements to the end of a referenced array ---( Array with 1 element(s): )--- --> State of referenced array before loop: array(1) { [0]=> string(3) "v.0" } --> Do loop: iteration 0: $k=0; $v=v.0 --> State of array after loop: array(2) { [0]=> string(3) "v.0" [1]=> string(5) "new.0" } ---( Array with 2 element(s): )--- --> State of referenced array before loop: array(2) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 --> State of array after loop: array(4) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(5) "new.0" [3]=> string(5) "new.1" } ---( Array with 3 element(s): )--- --> State of referenced array before loop: array(3) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 iteration 2: $k=2; $v=v.2 --> State of array after loop: array(6) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" [3]=> string(5) "new.0" [4]=> string(5) "new.1" [5]=> string(5) "new.2" } ---( Array with 4 element(s): )--- --> State of referenced array before loop: array(4) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" [3]=> string(3) "v.3" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 iteration 2: $k=2; $v=v.2 iteration 3: $k=3; $v=v.3 --> State of array after loop: array(8) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" [3]=> string(3) "v.3" [4]=> string(5) "new.0" [5]=> string(5) "new.1" [6]=> string(5) "new.2" [7]=> string(5) "new.3" } Adding elements to the start of a referenced array ---( Array with 1 element(s): )--- --> State of referenced array before loop: array(1) { [0]=> string(3) "v.0" } --> Do loop: iteration 0: $k=0; $v=v.0 --> State of array after loop: array(2) { [0]=> string(5) "new.0" [1]=> string(3) "v.0" } ---( Array with 2 element(s): )--- --> State of referenced array before loop: array(2) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 --> State of array after loop: array(4) { [0]=> string(5) "new.1" [1]=> string(5) "new.0" [2]=> string(3) "v.0" [3]=> string(3) "v.1" } ---( Array with 3 element(s): )--- --> State of referenced array before loop: array(3) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 iteration 2: $k=2; $v=v.2 --> State of array after loop: array(6) { [0]=> string(5) "new.2" [1]=> string(5) "new.1" [2]=> string(5) "new.0" [3]=> string(3) "v.0" [4]=> string(3) "v.1" [5]=> string(3) "v.2" } ---( Array with 4 element(s): )--- --> State of referenced array before loop: array(4) { [0]=> string(3) "v.0" [1]=> string(3) "v.1" [2]=> string(3) "v.2" [3]=> string(3) "v.3" } --> Do loop: iteration 0: $k=0; $v=v.0 iteration 1: $k=1; $v=v.1 iteration 2: $k=2; $v=v.2 iteration 3: $k=3; $v=v.3 --> State of array after loop: array(8) { [0]=> string(5) "new.3" [1]=> string(5) "new.2" [2]=> string(5) "new.1" [3]=> string(5) "new.0" [4]=> string(3) "v.0" [5]=> string(3) "v.1" [6]=> string(3) "v.2" [7]=> string(3) "v.3" }