3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo INTL_ICU_VERSION . "\n"; $language = 'ru-RU'; $pattern = '{n, spellout,%spellout-ordinal}'; $params = ['n' => 91398.71]; $formatter = new \MessageFormatter($language, $pattern); if ($formatter === null) { echo "Invalid pattern: " . intl_get_error_code() . "\n" . intl_get_error_message(); } echo $formatter->format($params); echo "\n";
based on 2KpYA
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.31, 7.3.0 - 7.3.19, 7.4.0 - 7.4.7, 8.0.0alpha1 - alpha2
57.1 девяносто одна тысяча триста девяносто восемь целых семь миллиардов сто миллионов десятимиллиардных
Output for 5.5.0 - 5.5.38
Notice: Use of undefined constant INTL_ICU_VERSION - assumed 'INTL_ICU_VERSION' in /in/VbaYc on line 3 INTL_ICU_VERSION Fatal error: Class 'MessageFormatter' not found in /in/VbaYc on line 9
Process exited with code 255.