3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = '421917982116'; $haveNumberPlus = strpos($number, '+'); if ($haveNumberPlus === false) { echo number_format((int)$number, 0, ' ', ' '); } echo '+' . number_format((int)$number, 0, ' ', ' ');
Output for 7.1.4
421 917 982 116+421 917 982 116