3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 2222.22; $b = 100; var_dump((int) $a, $a, $a*$b);
Output for 8.0.0 - 8.0.13, 8.1rc1 - rc3
int(2222) float(2222.22) float(222221.99999999997)
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.26
int(2222) float(2222.22) float(222222)

preferences:
21.41 ms | 460 KiB | 5 Q