3v4l.org

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