3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(array &$foo) { $foo[] = 2; } $a = array(1); call_user_func('foo', &$a); var_dump($a);
Output for git.master_jit, git.master
Parse error: syntax error, unexpected token "&", expecting ")" in /in/Gq957 on line 9
Process exited with code 255.

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:
43.04 ms | 760 KiB | 3 Q