3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 "; } } ?>
based on 2DrrI
Output for 4.3.0 - 7.2.0
i= 3 j= 4 x= 7not found