3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = preg_replace('/\s+/', '', '‪931 015 846'); var_dump($string); $numero = number_format($string); var_dump($numero);
based on 1u9HI
Output for 7.0.0 - 7.2.0
string(12) "‪931015846" Warning: number_format() expects parameter 1 to be float, string given in /in/aTl5X on line 4 NULL
Output for 5.3.17 - 5.6.28
string(12) "‪931015846" Warning: number_format() expects parameter 1 to be double, string given in /in/aTl5X on line 4 NULL