3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $original = (double) 9999.99; $int = (int) ($original * 100); //should be 99,9999 ?? var_dump($int); $double = $int / 100; // should be 9999.99 again ?? var_dump($double); var_dump($double == $original);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(999999) float(9999.99) bool(true)