3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 "標準です。"; } ?>
based on MKhUW
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: bmi in /in/dqaBq on line 8 Fatal error: Uncaught Error: Function name must be a string in /in/dqaBq:8 Stack trace: #0 {main} thrown in /in/dqaBq on line 8
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Notice: Undefined variable: bmi in /in/dqaBq on line 8 Fatal error: Function name must be a string in /in/dqaBq on line 8
Process exited with code 255.