3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = 12.34; foreach (['en_US', 'nl_NL.utf8'] as $locale) { setlocale(LC_ALL, $locale); var_dump($locale, (string)$number); }
Output for 7.3.0rc3
string(5) "en_US" string(5) "12.34" string(10) "nl_NL.utf8" string(5) "12.34"