3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &find_var($one, $two, $three) { if(($one > 0) && ($one <= 10)) return $one; if(($two > 0) && ($two <= 10)) return $two; if(($three > 0) && ($three <= 10)) return $three; } $c_one = 'foo'; $c_two = 42; $c_three = 4; $right_var = &find_var($c_one, $c_two, $c_three); $right_var++; echo "The value of \$c_three and \$right_var are: "; echo "$c_three and $right_var<BR>\n"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
The value of $c_three and $right_var are: 4 and 5<BR>

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:
41 ms | 401 KiB | 8 Q