3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $number = '2.05'; var_dump('1:'.$number); $number = str_replace(',','',$number); var_dump('2:'.$number); $number = $number * 100; var_dump('3:'.$number); $ret = intval( $number); var_dump('4:'.$ret);
Output for 4.3.0 - 7.1.0
string(6) "1:2.05" string(6) "2:2.05" string(5) "3:205" string(5) "4:204"