3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo INTL_ICU_VERSION . "\n"; $language = 'ru-RU'; $pattern = '{0, plural, =0{У вас нет новых сообщений} =1{У вас одно новое сообщение} one{У вас # непрочитанное сообщение} few{У вас # непрочитанных сообщения} many{У вас # непрочитанных сообщений} other{У вас # сообщений}}!'; $params = ['0' => 3]; $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 git.master, git.master_jit, rfc.property-hooks
57.1 У вас 3 непрочитанных сообщения!

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
75.11 ms | 405 KiB | 5 Q