3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $integer = 680; $float = 680.0; var_export($integer); var_export($float); var_export($integer == round($integer)); print("\n"); var_export(round($integer) == 0); print("\n"); var_export($integer === intval(round($integer))); print("\n"); var_export($float === round($float)); var_export(round($float) == 0);
Output for 7.0.2 - 7.2.0
680680.0true false true truefalse
Output for 5.3.20 - 7.0.1
680680true false true truefalse