3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &get_ref($_): string { static $a = "f"; return $a; } function &get_ref2(): string { return "foo" |> get_ref(...); } echo get_ref2();
Output for git.master, git.master_jit
Notice: Only variable references should be returned by reference in /in/po5A6 on line 11 f

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:
154.76 ms | 1007 KiB | 7 Q