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 7.4.12 - 7.4.27, 8.0.0 - 8.0.12, 8.0.14 - 8.0.15, 8.1.0 - 8.1.2
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.
Output for 7.3.32 - 7.3.33, 8.0.13
Fatal error: Uncaught Error: Call to undefined function msgfmt_create() in /in/3erK9:3 Stack trace: #0 {main} thrown in /in/3erK9 on line 3
Process exited with code 255.
Output for 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.11
f1 is NULL f2 is NULL Fatal error: Uncaught IntlException: Constructor failed 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.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
f1 is NULL f2 is NULL f3 is NULL
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45
Fatal error: Call to undefined function msgfmt_create() in /in/3erK9 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: msgfmt_create() in /in/3erK9 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: msgfmt_create() in /in/3erK9 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: msgfmt_create() in /in/3erK9 on line 3

preferences:
76.14 ms | 467 KiB | 5 Q