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);
Output for 4.3.0 - 7.1.0
float(2.2) float(1.1) float(0) float(-1.1)