3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php \Locale::setDefault('nb-no'); $fmt = new IntlDateFormatter(null, IntlDateFormatter::MEDIUM, "Europe/Vienna"); echo "First Formatted output is ".$fmt->format(0);
based on qIMvY
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught TypeError: IntlDateFormatter::__construct() expects parameter 3 to be integer, string given in /in/4RlOX:6 Stack trace: #0 /in/4RlOX(6): IntlDateFormatter->__construct('', 2, 'Europe/Vienna') #1 {main} thrown in /in/4RlOX on line 6
Process exited with code 255.
Output for hhvm-3.11.1 - 3.17.3
Fatal error: Uncaught exception 'Exception' with message '__construct() expects parameter 1 to be string, null given' in /in/4RlOX:6 Stack trace: #0 /in/4RlOX(6): IntlDateFormatter->__construct() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: Uncaught exception 'Exception' with message '__construct() expects parameter 3 to be integer, string given' in /in/4RlOX:6 Stack trace: #0 /in/4RlOX(6): IntlDateFormatter->__construct() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Warning: IntlDateFormatter::__construct() expects parameter 3 to be long, string given in /in/4RlOX on line 6 Fatal error: Call to a member function format() on null in /in/4RlOX on line 7
Process exited with code 255.
Output for 5.5.0 - 5.5.38
Fatal error: Class 'Locale' not found in /in/4RlOX on line 3
Process exited with code 255.