3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '275,590'; $arr = explode(',',$input); $f = new NumberFormatter("en", NumberFormatter::SPELLOUT); echo $f->format($arr[0]).' dinar and '.$f->format($arr[1]).' millimes ';

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
165 ms | 1732 KiB | 9 Q