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:'; var_dump($number); $ret = intval( $number); echo '3:'; var_dump($ret); var_dump(intval(2.05));
based on BBs7K
Output for 4.3.0 - 7.1.0
1:string(4) "2.05" 2:float(205) 3:int(204) int(2)