3v4l.org

run code in 300+ PHP versions simultaneously
<?php new MessageFormatter('en', '{count, unknown, test}');
Output for 7.4.12 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Fatal error: Uncaught IntlException: msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR in /in/Sf69D:3 Stack trace: #0 /in/Sf69D(3): MessageFormatter->__construct('en', '{count, unknown...') #1 {main} thrown in /in/Sf69D on line 3
Process exited with code 255.
Output for 8.0.13
Fatal error: Uncaught Error: Class "MessageFormatter" not found in /in/Sf69D:3 Stack trace: #0 {main} thrown in /in/Sf69D on line 3
Process exited with code 255.
Output for 7.3.32, 7.4.33
Fatal error: Uncaught Error: Class 'MessageFormatter' not found in /in/Sf69D:3 Stack trace: #0 {main} thrown in /in/Sf69D on line 3
Process exited with code 255.
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.31, 7.3.33, 7.4.0 - 7.4.11
Fatal error: Uncaught IntlException: Constructor failed in /in/Sf69D:3 Stack trace: #0 /in/Sf69D(3): MessageFormatter->__construct('en', '{count, unknown...') #1 {main} thrown in /in/Sf69D on line 3
Process exited with code 255.
Output for 5.6.38

preferences:
69.81 ms | 411 KiB | 5 Q