3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 0.1 + 0.2; $a -= 0.1; $b = 0.2; var_dump(array(0.1 + 0.2, 0.3, 0.1 + 0.2 == 0.3, 0.1 + 0.2 === 0.3, $a == $b, $a - 0.2, $b - 0.2));
based on l5Jvg
Output for 4.3.0 - 7.1.0
array(7) { [0]=> float(0.3) [1]=> float(0.3) [2]=> bool(false) [3]=> bool(false) [4]=> bool(false) [5]=> float(2.7755575615629E-17) [6]=> float(0) }