3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function parse_float($string) { $float = str_replace( array('.', ','), array('', '.'), $string ); return floatval($float); } echo parse_float('1.000,12');
based on i6eiT
Output for 5.6.0 - 7.2.6
1000.12