3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::CURRENCY ); $return = $fmt->formatCurrency((float) 'asd', 'de_DE'); var_dump(numfmt_get_error_message($fmt), intl_is_failure($fmt->getErrorCode()), $return); ?>
based on 9th6C
Output for 7.3.0alpha1 - 7.3.0beta1
Fatal error: Uncaught Error: Class 'NumberFormatter' not found in /in/3C5Cn:2 Stack trace: #0 {main} thrown in /in/3C5Cn on line 2
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.11
string(50) "Number formatting failed: U_ILLEGAL_ARGUMENT_ERROR" bool(true) bool(false)
Output for hhvm-3.18.5 - 3.22.0
string(24) "U_ILLEGAL_ARGUMENT_ERROR" bool(true) NULL