3v4l.org

run code in 300+ PHP versions simultaneously
<?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));
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.21, 8.3.0 - 8.3.9
int(55329) float(55329.99999999999) int(55530) int(55329) int(22030)
Output for 7.0.0 - 7.0.25, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
int(55329) float(55329.9999999999927) int(55530) int(55329) int(22030)

preferences:
135.93 ms | 403 KiB | 231 Q