3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? $it_ordinal_masculine = new NumberFormatter('it', NumberFormatter::SPELLOUT); $it_ordinal_masculine->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%spellout-ordinal-masculine"); echo $it_ordinal_masculine->format(2); ?>
Output for 5.5.17, 5.6.0 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.11
secondo
Output for 5.4.0 - 5.5.16, 5.5.18 - 5.5.38
Fatal error: Class 'NumberFormatter' not found in /in/5rt7m on line 2
Process exited with code 255.
Output for 4.3.0 - 5.3.29
<? $it_ordinal_masculine = new NumberFormatter('it', NumberFormatter::SPELLOUT); $it_ordinal_masculine->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%spellout-ordinal-masculine"); echo $it_ordinal_masculine->format(2); ?>