Home
last modified time | relevance | path

Searched refs:ary (Results 1 – 25 of 40) sorted by relevance

12

/PHP-8.4/Zend/tests/list/
H A Dlist_reference_009.phpt5 $ary = [[0, 1]];
8 ($ary["foo"] = 1) => &$b
9 ]] = $ary;
11 var_dump($ary, $a, $b);
12 unset($ary, $a, $b);
14 $ary = [[0, 1]];
17 ($ary["foo"] = 1) => &$b
18 ] = $ary[0];
19 var_dump($ary, $a, $b);
/PHP-8.4/ext/reflection/tests/
H A DReflectionReference.phpt6 $ary = [0, 1, 2, 3];
7 $ref1 =& $ary[1];
9 $ref2 =& $ary[2];
10 $ref3 =& $ary[3];
13 $r0 = ReflectionReference::fromArrayElement($ary, 0);
15 $r1 = ReflectionReference::fromArrayElement($ary, 1);
17 $r2 = ReflectionReference::fromArrayElement($ary, 2);
19 $r3 = ReflectionReference::fromArrayElement($ary, 3);
28 $ary2 = [&$ary[2], &$ref3];
38 $r2 = ReflectionReference::fromArrayElement($ary, 2);
[all …]
H A DReflectionReference_errors.phpt25 $ary = [0, 1, 2];
26 ReflectionReference::fromArrayElement($ary, 3);
32 $ary = [&$ary];
33 $ref = ReflectionReference::fromArrayElement($ary, 0);
/PHP-8.4/Zend/tests/
H A Dbug63734.phpt9 public $ary;
12 $this->ary[] = 42;
15 global $ary;
16 $ary[] = $this->ary[0];
24 var_dump($ary);
H A Dassign_dim_op_same_var.phpt6 $ary = [[]];
7 $ary[0] += $ary;
8 foreach ($ary as $v) {
H A Darray_add_indirect.phpt7 $ary = ['y' => 1];
8 $ary += $GLOBALS;
9 var_dump($ary['x']);
11 var_dump($ary['x']);
H A Dbug79793.phpt13 $ary = [];
14 $ary[$key]++;
15 var_dump($ary);
16 $ary[$key] += 1;
17 var_dump($ary);
H A Dassign_coalesce_001.phpt35 $ary = [];
36 $ary["foo"] ??= 123;
37 $ary[$foo] ??= $bar;
38 $ary[$bar] ??= $foo;
39 var_dump($ary);
41 $ary = [];
42 $ary[id($foo)] ??= 123;
43 $ary[id($foo)] ??= $bar;
44 $ary[id($bar)] ??= $foo;
45 var_dump($ary);
H A Dassign_coalesce_002.phpt20 $ary = [];
22 $ary[id($foo)] ??= do_throw("ex1");
26 var_dump($ary);
46 $ary = new AA;
48 $ary[new Dtor][id($foo)] ??= $bar;
65 $ary = ["foo" => new AA2];
67 $ary[id($foo)][new Dtor] ??= $bar;
H A Dassign_coalesce_003.phpt31 $ary = new AA(["foo" => new AA, "null" => null]);
34 $ary["foo"] ??= "bar";
37 $ary["bar"] ??= "foo";
40 $ary["null"] ??= "baz";
43 $ary["foo"]["bar"] ??= "abc";
46 $ary["foo"]["bar"] ??= "def";
H A Dillegal_offset_unset_isset_empty.phpt6 $ary = [];
8 unset($ary[[]]);
13 isset($ary[[]]);
18 empty($ary[[]]);
H A Dbug78589.phpt13 $ary = [&$ary, $test];
14 unset($ary, $test);
H A Dassign_typed_ref_result.phpt16 $ary = [];
17 $ary[0] =& $obj->prop;
18 var_dump($ary[0] = 0);
H A Dctor_promotion_by_ref.phpt11 $ary = new Ary($array);
13 var_dump($ary->array);
/PHP-8.4/ext/opcache/tests/
H A Dbug78230.phpt13 $ary = [1, 2];
14 $ary[] = 3;
15 test($ary);
16 $ary[] = 4;
17 var_dump($ary);
H A Dassign_obj_op_of_fetch_dim.phpt2 Type inference for $ary[$idx]->prop +=
9 $ary = [];
10 $ary[0]->y += 2;
11 var_dump(is_object($ary[0]));
/PHP-8.4/ext/standard/tests/array/
H A Dbug22463.phpt6 function a($ary) {
7 return (is_array($ary) ? array_reduce($ary, 'cb', 0) : 1);
14 $ary = array(
26 var_dump(a($ary));
/PHP-8.4/Zend/tests/generators/
H A Dgc_running_generator.phpt9 $ary = [new stdClass, new stdClass, new stdClass];
10 $ary[0]->foo = $ary;
11 foreach ($ary as &$v) { }
/PHP-8.4/ext/soap/tests/interop/Round2/GroupB/
H A Dround2_groupB.inc23 function echo2DStringArray($ary)
25 return $ary;
28 function echoNestedArray($ary)
30 return $ary;
/PHP-8.4/Zend/tests/named_params/
H A Dunpack.phpt30 $ary = ['b' => 0];
31 $ary2 = $ary;
32 test2(...$ary);
33 var_dump($ary, $ary2);
51 $ary = ['b' => 0];
52 $ary2 = $ary;
53 test2(...new ArrayIterator($ary));
54 var_dump($ary, $ary2);
/PHP-8.4/ext/opcache/tests/jit/
H A Darray_elem.phpt9 $ary = [$a];
10 $ary2 = [0, $ary, $ary];
H A Dfetch_dim_r_009.phpt9 $ary = [[0]];
11 var_dump($ary[0][$i>>1]);
12 $ary[0][$i] = 1;
/PHP-8.4/Zend/tests/type_declarations/
H A Dtyped_properties_099.phpt7 public array $ary = [];
11 foreach ($test->ary as &$value) {}
17 ["ary"]=>
/PHP-8.4/ext/standard/tests/general_functions/
H A Dget_cfg_var_array.phpt4 ary[a] = 1
5 ary[b] = 2
11 var_dump(get_cfg_var('ary'));
/PHP-8.4/ext/opcache/tests/opt/
H A Dsccp_in_array.phpt7 $ary = ['x', 'y'];
8 var_dump(in_array($v, $ary));

Completed in 75 milliseconds

12