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
<html> <head> <?php /* the point of this file is to intensively test various aspects of * the parser. right now, each test focuses in one aspect only * (e.g. variable aliasing, arithemtic operator, various control * structures), while trying to combine code from other parts of the * parser as well. */ ?> *** Testing assignments and variable aliasing: ***<br> <?php /* This test tests assignments to variables using other variables as variable-names */ $a = "b"; $$a = "test"; $$$a = "blah"; ${$$$a}["associative arrays work too"] = "this is nifty"; ?> This should read "blah": <?php echo "$test<br>\n"; ?> This should read "this is nifty": <?php echo $blah[$test="associative arrays work too"]."<br>\n"; ?> *************************************************<br> *** Testing integer operators ***<br> <?php /* test just about any operator possible on $i and $j (ints) */ $i = 5; $j = 3; ?> Correct result - 8: <?php echo $i+$j; ?><br> Correct result - 8: <?php echo $i+$j; ?><br> Correct result - 2: <?php echo $i-$j; ?><br> Correct result - -2: <?php echo $j-$i; ?><br> Correct result - 15: <?php echo $i*$j; ?><br> Correct result - 15: <?php echo $j*$i; ?><br> Correct result - 2: <?php echo $i%$j; ?><br> Correct result - 3: <?php echo $j%$i; ?><br> *********************************<br> *** Testing real operators ***<br> <?php /* test just about any operator possible on $i and $j (floats) */ $i = 5.0; $j = 3.0; ?> Correct result - 8: <?php echo $i+$j; ?><br> Correct result - 8: <?php echo $i+$j; ?><br> Correct result - 2: <?php echo $i-$j; ?><br> Correct result - -2: <?php echo $j-$i; ?><br> Correct result - 15: <?php echo $i*$j; ?><br> Correct result - 15: <?php echo $j*$i; ?><br> Correct result - 2: <?php echo $i%$j; ?><br> Correct result - 3: <?php echo $j%$i; ?><br> *********************************<br> *** Testing if/elseif/else control ***<br> <?php /* sick if/elseif/else test by Andi :) */ $a = 5; if ($a == "4") { echo "This "." does "." not "." work<br>\n"; } elseif ($a == "5") { echo "This "." works<br>\n"; $a = 6; if ("andi" == ($test = "andi")) { echo "this_still_works<br>\n"; } elseif (1) { echo "should_not_print<br>\n"; } else { echo "should_not_print<br>\n"; } if (44 == 43) { echo "should_not_print<br>\n"; } else { echo "should_print<br>\n"; } } elseif ($a == 6) { echo "this "."broken<br>\n"; if (0) { echo "this_should_not_print<br>\n"; } else { echo "TestingDanglingElse_This_Should_not_print<br>\n"; } } else { echo "This "."does "." not"." work<br>\n"; } ?> *** Seriously nested if's test ***<br> ** spelling correction by kluzz ** <?php /* yet another sick if/elseif/else test by Zeev */ $i=$j=0; echo "Only two lines of text should follow:<br>\n"; if (0) { /* this code is not supposed to be executed */ echo "hmm, this shouldn't be displayed #1<br>\n"; $j++; if (1) { $i += $j; if (0) { $j = ++$i; if (1) { $j *= $i; echo "damn, this shouldn't be displayed<br>\n"; } else { $j /= $i; ++$j; echo "this shouldn't be displayed either<br>\n"; } } elseif (1) { $i++; $j++; echo "this isn't supposed to be displayed<br>\n"; } } elseif (0) { $i++; echo "this definitely shouldn't be displayed<br>\n"; } else { --$j; echo "and this too shouldn't be displayed<br>\n"; while ($j>0) { $j--; } } } elseif (2-2) { /* as long as 2-2==0, this isn't supposed to be executed either */ $i = ++$j; echo "hmm, this shouldn't be displayed #2<br>\n"; if (1) { $j = ++$i; if (0) { $j = $i*2+$j*($i++); if (1) { $i++; echo "damn, this shouldn't be displayed<br>\n"; } else { $j++; echo "this shouldn't be displayed either<br>\n"; } } else if (1) { ++$j; echo "this isn't supposed to be displayed<br>\n"; } } elseif (0) { $j++; echo "this definitely shouldn't be displayed<br>\n"; } else { $i++; echo "and this too shouldn't be displayed<br>\n"; } } else { $j=$i++; /* this should set $i to 1, but shouldn't change $j (it's assigned $i's previous values, zero) */ echo "this should be displayed. should be: \$i=1, \$j=0. is: \$i=$i, \$j=$j<br>\n"; if (1) { $j += ++$i; /* ++$i --> $i==2, $j += 2 --> $j==2 */ if (0) { $j += 40; if (1) { $i += 50; echo "damn, this shouldn't be displayed<br>\n"; } else { $j += 20; echo "this shouldn't be displayed either<br>\n"; } } else if (1) { $j *= $i; /* $j *= 2 --> $j == 4 */ echo "this is supposed to be displayed. should be: \$i=2, \$j=4. is: \$i=$i, \$j=$j<br>\n"; echo "3 loop iterations should follow:<br>\n"; while ($i<=$j) { echo $i++." $j<br>\n"; } } } elseif (0) { echo "this definitely shouldn't be displayed<br>\n"; } else { echo "and this too shouldn't be displayed<br>\n"; } echo "**********************************<br>\n"; } ?> *** C-style else-if's ***<br> <?php /* looks like without we even tried, C-style else-if structure works fine! */ if ($a=0) { echo "This shouldn't be displayed<br>\n"; } else if ($a++) { echo "This shouldn't be displayed either<br>\n"; } else if (--$a) { echo "No, this neither<br>\n"; } else if (++$a) { echo "This should be displayed<br>\n"; } else { echo "This shouldn't be displayed at all<br>\n"; } ?> *************************<br> *** WHILE tests ***<br> <?php $i=0; $j=20; while ($i<(2*$j)) { if ($i>$j) { echo "$i is greater than $j<br>\n"; } else if ($i==$j) { echo "$i equals $j<br>\n"; } else { echo "$i is smaller than $j<br>\n"; } $i++; } ?> *******************<br> *** Nested WHILEs ***<br> <?php $arr_len=3; $i=0; while ($i<$arr_len) { $j=0; while ($j<$arr_len) { $k=0; while ($k<$arr_len) { ${"test$i$j"}[$k] = $i+$j+$k; $k++; } $j++; } $i++; } echo "Each array variable should be equal to the sum of its indices:<br>\n"; $i=0; while ($i<$arr_len) { $j=0; while ($j<$arr_len) { $k=0; while ($k<$arr_len) { echo "\${test$i$j}[$k] = ".${"test$i$j"}[$k]."<br>\n"; $k++; } $j++; } $i++; } ?> *********************<br> *** hash test... ***<br> <?php /* $i=0; while ($i<10000) { $arr[$i]=$i; $i++; } $i=0; while ($i<10000) { echo $arr[$i++]."<br>\n"; } */ echo "commented out..."; ?> **************************<br> *** Hash resizing test ***<br> <?php $i = 10; $a = 'b'; while ($i > 0) { $a = $a . 'a'; echo "$a<br>\n"; $resize[$a] = $i; $i--; } $i = 10; $a = 'b'; while ($i > 0) { $a = $a . 'a'; echo "$a<br>\n"; echo $resize[$a]."<br>\n"; $i--; } ?> **************************<br> *** break/continue test ***<br> <?php $i=0; echo "\$i should go from 0 to 2<br>\n"; while ($i<5) { if ($i>2) { break; } $j=0; echo "\$j should go from 3 to 4, and \$q should go from 3 to 4<br>\n"; while ($j<5) { if ($j<=2) { $j++; continue; } echo " \$j=$j<br>\n"; for ($q=0; $q<=10; $q++) { if ($q<3) { continue; } if ($q>4) { break; } echo " \$q=$q<br>\n"; } $j++; } $j=0; echo "\$j should go from 0 to 2<br>\n"; while ($j<5) { if ($j>2) { $k=0; echo "\$k should go from 0 to 2<br>\n"; while ($k<5) { if ($k>2) { break 2; } echo " \$k=$k<br>\n"; $k++; } } echo " \$j=$j<br>\n"; $j++; } echo "\$i=$i<br>\n"; $i++; } ?> ***********************<br> *** Nested file include test ***<br> <?php include("023-2.inc"); ?> ********************************<br> <?php { echo "Tests completed.<br>\n"; # testing some PHP style comment... } ?>