3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('precision', 18); var_dump((int) (553.30 * 100)); echo PHP_EOL; var_dump(553.30 * 100); echo PHP_EOL; var_dump((int) 55530.00); echo PHP_EOL; $result = 553.30 * 100; var_dump((int) $result); echo PHP_EOL; echo PHP_EOL; echo var_dump((int) (220.30 * 100));
based on ASvQr
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.11
int(55329) float(55329.9999999999927) int(55530) int(55329) int(22030)
Output for hhvm-3.18.5 - 3.22.0
int(55329) float(55330) int(55530) int(55329) int(22030)