3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
float(0) float(1.0E-6) <hr/>bool(false) bool(true)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.2
float(0) float(1.E-6) <hr/>bool(false) bool(true)