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); $number = 205.0; $ret = intval( $number); echo '3:'; var_dump($ret);
based on jLNat
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1:string(4) "2.05" 2:float(205) 3:int(205)