3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = '1.0'; //echo floatval($input); if($input !== floatval($input)) { echo 'invalid'; } else { echo $input; }
Output for 4.3.0 - 7.2.0
invalid