3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmtEN = new MessageFormatter("en_US", "{GENDER, select, male {He} female {She} } added {NUM_ITEMS, plural, one {1 kitten} other {# kittens} } to the cart."); $fmtPL = new MessageFormatter("pl_PL", "{GENDER, select, male {On dodal} female {Ona dodala} } {NUM_ITEMS, plural, one {1 kotka} other {# kotkow} } do koszyka."); echo $fmtEN->format(['GENDER' => 'male', 'NUM_ITEMS'=> 5]); echo PHP_EOL; echo $fmtPL->format(['GENDER' => 'male', 'NUM_ITEMS'=> 5]); echo PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught IntlException: msgfmt_create: message formatter creation failed: U_DEFAULT_KEYWORD_MISSING in /in/iioVt:3 Stack trace: #0 /in/iioVt(3): MessageFormatter->__construct('en_US', '{GENDER, select...') #1 {main} thrown in /in/iioVt on line 3
Process exited with code 255.

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:
53.94 ms | 401 KiB | 8 Q