3v4l.org

run code in 300+ PHP versions simultaneously
<?php function variadic(string $a, ...$b) { printf( "--------------%d---------------\n", func_num_args()); var_dump(func_get_args()); var_dump($a, $b); printf("------------------------------\n\n"); } variadic("a", ["things", "things2"]); variadic(a: "a", b: ["things", "things2"]);
Output for rfc.property-hooks, git.master, git.master_jit
--------------2--------------- array(2) { [0]=> string(1) "a" [1]=> array(2) { [0]=> string(6) "things" [1]=> string(7) "things2" } } string(1) "a" array(1) { [0]=> array(2) { [0]=> string(6) "things" [1]=> string(7) "things2" } } ------------------------------ --------------1--------------- array(1) { [0]=> string(1) "a" } string(1) "a" array(1) { ["b"]=> array(2) { [0]=> string(6) "things" [1]=> string(7) "things2" } } ------------------------------

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:
40.06 ms | 1107 KiB | 4 Q