3v4l.org

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