3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $floatVal = floatval(9722.22) * 100; $intVal = intval($floatVal); $int = (int) $floatVal; var_dump($floatVal); var_dump($intVal); var_dump($int);
based on 1J16k
Output for 5.6.0 - 7.3.0rc4
float(972222) int(972221) int(972221)