3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bmi ($height, $mass) { $height = $height/100; $mass = $mass/($height * $height); return $mass; } $bmi(170 , 50); if($bmi < 18.5){ print "痩せ過ぎです。"; } else if ($bmi >25) { print "太りすぎです。"; } else { print "標準です。"; } if($bmi < 18.5){ echo "やせすぎです"; }else if($bmi > 25){echo "太りすぎです"; }else{echo "標準です" ; } } ?>
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected '}' in /in/MKhUW on line 23
Process exited with code 255.

preferences:
162.91 ms | 1395 KiB | 22 Q