3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_REQUEST['income']= 2; $income = $_REQUEST['income']; //Gross Income Overview function ovIncome($income) { //Check if Less Than or More Than if ($income == 0) { $wageVal = 'Less than € 30.984,- '; } elseif($income == 1) { $wageVal = 'More than € 30.984,- and same as € 61.200,-'; } else { $wageVal = 'More than € 30.984,-'; } echo "$wageVal"; } ovIncome($income);// caling function by passing variable as a parameter
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14
More than € 30.984,-

preferences:
156.24 ms | 407 KiB | 5 Q