3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $float = array( 12.5, 12.000000001, 12.00000, 12, 12.41757445, 12.071774 ); foreach ($float as $i) { if (false === preg_match('/\d+.[^1-9]+/', $i)) { echo $i . PHP_EOL; echo round($i) . " match" . PHP_EOL; } }
based on EcaDU
Output for 5.3.18 - 7.3.0rc4