3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(...$args) { var_dump($args); } foo(...[3 => 'a', 4 => 'b']); foo(...['a' => 'a', 'b' => 'b']);

preferences:
11.09 ms | 457 KiB | 5 Q