<?php function foo(...$args) { // This used to be list<positive-int|0> :-( var_dump(array_keys($args)); } foo(3, 4, 1, 2, 5, 7); foo(f: 3, g: 4, a: 1, b: 2, z: 5, w: 7);
You have javascript disabled. You will not be able to edit any code.