3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0.2; $b = 0.7; $c = $a + $b; $d = 0.9; var_dump($c); var_dump($c === $d); var_dump(round($c, 1)); var_dump(round($c, 1) === $d);
Output for 4.3.0 - 7.2.0
float(0.9) bool(false) float(0.9) bool(true)