3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = 108464.6749028; $rounded_value = sprintf("%.2f", round($value, 2)); $reversed_value = strrev($rounded_value); $french_number = preg_replace('/(\d{3})/', '$1 ', $reversed_value); $formatted_value = strrev($french_number); echo $formatted_value . "\n"; echo preg_replace('/\..*/', '', $formatted_value);
based on 6FoVg
Output for 4.3.0 - 7.1.0
108 464.67 108 464