3v4l.org

run code in 300+ PHP versions simultaneously
<?php function setAge($i,$j){ echo " i= ".$i ; echo " j= ".$j ; return $i+$j; } $x=setAge(3,4); echo " x= ".$x; switch($x){ case "5": { echo "Your age= 5 "; } break; case "10": { echo "Your age= 10 "; } break; case "15":{ echo "Your age= 15 "; }break; default: { echo "not found "; } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
i= 3 j= 4 x= 7not found

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