3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(int $a = 0, int $b = 0, string ...$flags) { var_dump($flags); } foo(flags: 'bar'); //foo(flags: 'bar', 'baz'); //foo(flags: ['bar', 'baz']); //foo(flags: ...['bar', 'baz']);

preferences:
134.5 ms | 404 KiB | 5 Q