3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(...$vargs) { var_dump($vargs); } foo(1); foo(vargs: 2); foo(vargs: 3, someothername: 4); foo(a: 5, b: 6, c: 7);
Output for git.master_jit, git.master
array(1) { [0]=> int(1) } array(1) { ["vargs"]=> int(2) } array(2) { ["vargs"]=> int(3) ["someothername"]=> int(4) } array(3) { ["a"]=> int(5) ["b"]=> int(6) ["c"]=> int(7) }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
54.07 ms | 405 KiB | 5 Q