3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v1 = 10.51 + 10.52 + 10.53; $v2 = 31.56; echo "$v1 - $v2\n"; var_dump($v1 == $v2); ini_set('precision', 20); echo "$v1 - $v2\n"; var_dump($v1 == $v2);
based on iVFXr
Output for 4.3.0, 5.4.38 - 5.6.28, 7.0.0 - 7.1.0
31.56 - 31.56 bool(false) 31.560000000000002274 - 31.559999999999998721 bool(false)
Output for hhvm-3.10.0 - 3.12.0
31.56 - 31.56 bool(false) 31.56 - 31.56 bool(false)
Output for 4.3.5 - 5.4.37
31.56 - 31.56 bool(false) Warning: ini_set() has been disabled for security reasons in /in/eWOp6 on line 6 31.56 - 31.56 bool(false)
Output for 4.3.1 - 4.3.4
31.56 - 31.56 bool(false) Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/eWOp6 on line 6 31.56 - 31.56 bool(false)