3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 0.03; $b = 1 - 0.97; $c = (float)(string) 0.03; $d = (float)(string) (1 - 0.97); var_dump($a, $b, $a === $b, $c, $d, $c === $d); var_dump(sprintf('%1.16f', $b), sprintf('%1.16f', $d))
Output for 5.4.0 - 5.4.9
Parse error: syntax error, unexpected end of file in /in/59ZAF on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.19
Parse error: syntax error, unexpected $end in /in/59ZAF on line 8
Process exited with code 255.