3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $number = '2.05'; echo '1:'; var_dump($number); $number = $number * 100; echo '2:'; printf("%f\n",$number); $ret = intval( $number); echo '3:'; var_dump($ret);
based on md6gd
Output for 4.3.0 - 7.1.0
1:string(4) "2.05" 2:205.000000 3:int(204)