3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f1 = msgfmt_create('en_US', '{this was made intentionally incorrect}'); echo 'f1 is ', gettype($f1), PHP_EOL; $f2 = MessageFormatter::create('en_US', '{this was made intentionally incorrect}'); echo 'f2 is ', gettype($f2), PHP_EOL; $f3 = new MessageFormatter('en_US', '{this was made intentionally incorrect}'); echo 'f3 is ', gettype($f3), PHP_EOL; ?>
Output for git.master, git.master_jit, rfc.property-hooks
f1 is NULL f2 is NULL Fatal error: Uncaught IntlException: pattern syntax error (parse error at offset 1, after "{", before or at "this was made i"): U_PATTERN_SYNTAX_ERROR in /in/3erK9:9 Stack trace: #0 /in/3erK9(9): MessageFormatter->__construct('en_US', '{this was made ...') #1 {main} thrown in /in/3erK9 on line 9
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:
59.11 ms | 401 KiB | 8 Q