3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo MessageFormatter::formatMessage("en_US", "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree\n", array(4560, 123, 4560/123)); echo MessageFormatter::formatMessage("de", "{0,number,integer} Affen auf {1,number,integer} Bäumen sind {2,number} Affen pro Baum\n", array(4560, 123, 4560/123)); ?>
Output for 5.4.0 - 5.4.25, 5.4.36 - 5.5.28, 5.5.31 - 5.5.33, 5.5.35 - 5.6.12, 5.6.16 - 5.6.19, 5.6.21 - 7.0.4, 7.0.6 - 7.2.6, 7.3.0rc3 - 7.3.0rc4
4,560 monkeys on 123 trees make 37.073 monkeys per tree 4.560 Affen auf 123 Bäumen sind 37,073 Affen pro Baum
Output for 7.0.5, 7.3.0alpha1 - 7.3.0beta1
Fatal error: Uncaught Error: Class 'MessageFormatter' not found in /in/K7Lg1:2 Stack trace: #0 {main} thrown in /in/K7Lg1 on line 2
Process exited with code 255.
Output for 5.0.0 - 5.3.29, 5.4.26 - 5.4.35, 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
Fatal error: Class 'MessageFormatter' not found in /in/K7Lg1 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'messageformatter' in /in/K7Lg1 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'messageformatter' in /in/K7Lg1 on line 2