3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $float = 17.31; // Bedrag in centen $integer = intval($float * 100); $integer2 = (integer)($float*100); echo $float."\n"; echo $integer."\n"; echo $integer2."\n";
Output for 4.3.0 - 7.1.0
17.31 1730 1730