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";
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.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.24, 8.1.0 - 8.1.11
57.1 девяносто одна тысяча триста девяносто восемь целых семь миллиардов сто миллионов десятимиллиардных
Output for 8.0.13
Fatal error: Uncaught Error: Undefined constant "INTL_ICU_VERSION" in /in/VbaYc:3 Stack trace: #0 {main} thrown in /in/VbaYc on line 3
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant INTL_ICU_VERSION - assumed 'INTL_ICU_VERSION' (this will throw an Error in a future version of PHP) in /in/VbaYc on line 3 INTL_ICU_VERSION Fatal error: Uncaught Error: Class 'MessageFormatter' not found in /in/VbaYc:9 Stack trace: #0 {main} thrown in /in/VbaYc on line 9
Process exited with code 255.
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.

preferences:
74.48 ms | 413 KiB | 5 Q