3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($a, &$b, &$c) { var_dump($a); $b++; $c--; } $arr = array('a', 10, 10); call_user_func_array('f', $arr); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: f(): Argument #2 ($b) must be passed by reference, value given in /in/g6lgl on line 11 Warning: f(): Argument #3 ($c) must be passed by reference, value given in /in/g6lgl on line 11 string(1) "a" array(3) { [0]=> string(1) "a" [1]=> int(10) [2]=> int(10) }

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:
39.28 ms | 402 KiB | 8 Q