3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( filter_var(true, FILTER_VALIDATE_FLOAT), filter_var(false, FILTER_VALIDATE_FLOAT), filter_var(1.1, FILTER_VALIDATE_FLOAT), filter_var(0.0, FILTER_VALIDATE_FLOAT), filter_var('0', FILTER_VALIDATE_FLOAT), filter_var('', FILTER_VALIDATE_FLOAT) );
based on rBO4T
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
float(1) bool(false) float(1.1) float(0) float(0) bool(false)