3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 1.1; $b = -1.1; $c = $a; $c += $a; var_dump($c); $c += $b; var_dump($c); $c += $b; var_dump($c); $c += $b; var_dump($c); $d = -0.00001893; $d += -1.89399999999999; var_dump($d);
based on dLIWA
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
float(2.2) float(1.1) float(0) float(-1.1) float(-1.89401893)