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_dump($number1 == $number2); echo "\n3: "; $ret1 = intval( $number1); $ret2 = intval( $number2); var_dump($ret1); var_dump($ret2); ?>
based on BBs7K
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
1:string(4) "2.05" 2: float(205) float(205) bool(false) 3: int(205) int(204)