3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var(1456165, FILTER_VALIDATE_FLOAT)); var_dump(filter_var('1456165', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('.1456165', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('0.1456165', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('145.6165', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('bolha', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('516.46.00', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('516.46.32', FILTER_VALIDATE_FLOAT)); var_dump(filter_var('51646.00', FILTER_VALIDATE_FLOAT)); ?>