@ 2021-01-20T13:57:28Z <?php
function f(int $i1 = null, ?int $i2, int|null $i3){
$i4 = func_get_args()[3] ?? null;
var_dump($i1,$i2,$i3, $i4);
}
f(null,null,null,null);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.4.1 - 8.4.12 Deprecated: f(): Implicitly marking parameter $i1 as nullable is deprecated, the explicit nullable type must be used instead in /in/PImcf on line 3
NULL
NULL
NULL
NULL
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.33 , 8.2.0 - 8.2.29 , 8.3.0 - 8.3.25 NULL
NULL
NULL
NULL
Output for 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /in/PImcf on line 3
Process exited with code 255 . preferences:dark mode live preview ace vim emacs key bindings
121.22 ms | 408 KiB | 5 Q