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.893000009; var_dump($d);
based on 03XK3
Output for 4.3.0 - 7.1.0
float(2.2) float(1.1) float(0) float(-1.1) float(-1.893018939)