3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $float = (double) 0; $float_sma = 1 / 1000000; var_dump($float, $float_sma); $is_float = (bool) $float; $is_float_sma = (bool) $float_sma; echo'<hr/>'; var_dump($is_float, $is_float_sma);
Output for 4.3.3 - 7.2.0
float(0) float(1.0E-6) <hr/>bool(false) bool(true)
Output for 4.3.0 - 4.3.2
float(0) float(1.E-6) <hr/>bool(false) bool(true)