3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value = 256.4 * 100; echo $value; echo "\n"; $cast = (int) $value; echo $cast; echo "\n"; $value = 123.7 * 100; echo $value; echo "\n"; $cast = (int) $value; echo $cast;
Output for 4.3.0 - 7.2.0
25640 25639 12370 12370