3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $Number = "11.34"; $Rounded = round($Number); $Result =($Rounded/2); is_int ($Result) ? $Solution = "is even" : $Solution = "is not even"; echo $Rounded . " divided by 2 equals " . $Result . " therefore " . $Number ." " . $Solution; ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
11 divided by 2 equals 5.5 therefore 11.34 is not even