1--TEST--
2list() with undefined keys
3--FILE--
4<?php
5
6$contrivedMixedKeyTypesExample = [
7    7 => "the best PHP version",
8    "elePHPant" => "the cutest mascot"
9];
10
11list(5 => $five, "duke" => $duke) = $contrivedMixedKeyTypesExample;
12
13var_dump($five, $duke);
14
15?>
16--EXPECTF--
17Warning: Undefined array key 5 in %s on line %d
18
19Warning: Undefined array key "duke" in %s on line %d
20NULL
21NULL
22