3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( msgfmt_format_message('en_GB', 'Peter has {0, plural, =0{no cat} =1{a cat} other{# cats}}', [0]), msgfmt_format_message('en_GB', 'Peter has {0, plural, =0{no cat} =1{a cat} other{# cats {1}}}', [1, 2]), msgfmt_format_message('en_GB', 'Peter has {0, plural, =0{no cat} =1{a cat} other{# cats}}', [2]) );
Output for git.master, git.master_jit, rfc.property-hooks
string(16) "Peter has no cat" string(15) "Peter has a cat" string(16) "Peter has 2 cats"

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