/PHP-8.2/Zend/tests/list/ |
H A D | list_reference_009.phpt | 5 $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.2/ext/reflection/tests/ |
H A D | ReflectionReference.phpt | 6 $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 D | ReflectionReference_errors.phpt | 25 $ary = [0, 1, 2]; 26 ReflectionReference::fromArrayElement($ary, 3); 32 $ary = [&$ary]; 33 $ref = ReflectionReference::fromArrayElement($ary, 0);
|
/PHP-8.2/Zend/tests/ |
H A D | bug63734.phpt | 9 public $ary; 12 $this->ary[] = 42; 15 global $ary; 16 $ary[] = $this->ary[0]; 24 var_dump($ary);
|
H A D | assign_dim_op_same_var.phpt | 6 $ary = [[]]; 7 $ary[0] += $ary; 8 foreach ($ary as $v) {
|
H A D | array_add_indirect.phpt | 7 $ary = ['y' => 1]; 8 $ary += $GLOBALS; 9 var_dump($ary['x']); 11 var_dump($ary['x']);
|
H A D | bug79793.phpt | 13 $ary = []; 14 $ary[$key]++; 15 var_dump($ary); 16 $ary[$key] += 1; 17 var_dump($ary);
|
H A D | assign_coalesce_001.phpt | 35 $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 D | assign_coalesce_002.phpt | 20 $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 D | illegal_offset_unset_isset_empty.phpt | 6 $ary = []; 8 unset($ary[[]]); 13 isset($ary[[]]); 18 empty($ary[[]]);
|
H A D | assign_coalesce_003.phpt | 31 $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 D | bug78589.phpt | 13 $ary = [&$ary, $test]; 14 unset($ary, $test);
|
H A D | assign_typed_ref_result.phpt | 16 $ary = []; 17 $ary[0] =& $obj->prop; 18 var_dump($ary[0] = 0);
|
H A D | ctor_promotion_by_ref.phpt | 11 $ary = new Ary($array); 13 var_dump($ary->array);
|
/PHP-8.2/ext/opcache/tests/ |
H A D | bug78230.phpt | 13 $ary = [1, 2]; 14 $ary[] = 3; 15 test($ary); 16 $ary[] = 4; 17 var_dump($ary);
|
H A D | assign_obj_op_of_fetch_dim.phpt | 2 Type inference for $ary[$idx]->prop += 9 $ary = []; 10 $ary[0]->y += 2; 11 var_dump(is_object($ary[0]));
|
/PHP-8.2/ext/standard/tests/array/ |
H A D | bug22463.phpt | 6 function a($ary) { 7 return (is_array($ary) ? array_reduce($ary, 'cb', 0) : 1); 14 $ary = array( 26 var_dump(a($ary));
|
/PHP-8.2/Zend/tests/generators/ |
H A D | gc_running_generator.phpt | 9 $ary = [new stdClass, new stdClass, new stdClass]; 10 $ary[0]->foo = $ary; 11 foreach ($ary as &$v) { }
|
/PHP-8.2/ext/soap/tests/interop/Round2/GroupB/ |
H A D | round2_groupB.inc | 23 function echo2DStringArray($ary) 25 return $ary; 28 function echoNestedArray($ary) 30 return $ary;
|
/PHP-8.2/Zend/tests/named_params/ |
H A D | unpack.phpt | 30 $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.2/ext/opcache/tests/jit/ |
H A D | array_elem.phpt | 9 $ary = [$a]; 10 $ary2 = [0, $ary, $ary];
|
H A D | fetch_dim_r_009.phpt | 10 $ary = [[0]]; 12 var_dump($ary[0][$i>>1]); 13 $ary[0][$i] = 1;
|
/PHP-8.2/Zend/tests/type_declarations/ |
H A D | typed_properties_099.phpt | 7 public array $ary = []; 11 foreach ($test->ary as &$value) {} 17 ["ary"]=>
|
/PHP-8.2/ext/standard/tests/general_functions/ |
H A D | get_cfg_var_array.phpt | 4 ary[a] = 1 5 ary[b] = 2 11 var_dump(get_cfg_var('ary'));
|
/PHP-8.2/ext/opcache/tests/opt/ |
H A D | sccp_in_array.phpt | 7 $ary = ['x', 'y']; 8 var_dump(in_array($v, $ary));
|