3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $number = '2.05'; echo '1:'; var_dump($number); $number1 = round($number * 100); $number2 = $number * 100; echo "\n2: "; var_dump($number1) ; var_dump($number2); var_export($number1 == $number2); echo "\n3: "; $ret1 = intval( $number1); $ret2 = intval( $number2); var_dump($ret1); var_dump($ret2); ?>
based on iGUjg
Output for 4.3.0 - 7.1.0
1:string(4) "2.05" 2: float(205) float(205) false 3: int(205) int(204)