3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('America/Sao_Paulo'); $data = new DateTime(); $formatter = new IntlDateFormatter('pt_BR', IntlDateFormatter::LONG, IntlDateFormatter::NONE, IntlDateFormatter::GREGORIAN); echo $formatter->format(new DateTime());
based on aJBXW
Output for 7.2.0
Fatal error: Uncaught IntlException: datefmt_create: no such time zone: '1': U_ILLEGAL_ARGUMENT_ERROR in /in/4EB2X:9 Stack trace: #0 /in/4EB2X(9): IntlDateFormatter->__construct('pt_BR', 1, -1, '1') #1 {main} thrown in /in/4EB2X on line 9
Process exited with code 255.
Output for 7.0.0 - 7.0.4, 7.0.6 - 7.1.10
Fatal error: Uncaught IntlException: Constructor failed in /in/4EB2X:9 Stack trace: #0 /in/4EB2X(9): IntlDateFormatter->__construct('pt_BR', 1, -1, '1') #1 {main} thrown in /in/4EB2X on line 9
Process exited with code 255.
Output for 7.0.5
Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /in/4EB2X:6 Stack trace: #0 {main} thrown in /in/4EB2X on line 6
Process exited with code 255.
Output for 5.6.8 - 5.6.12, 5.6.16 - 5.6.19, 5.6.21
Fatal error: Call to a member function format() on null in /in/4EB2X on line 10
Process exited with code 255.
Output for 5.3.18 - 5.3.29, 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
Fatal error: Class 'IntlDateFormatter' not found in /in/4EB2X on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.28, 5.5.31 - 5.5.33, 5.5.35
Fatal error: Call to a member function format() on a non-object in /in/4EB2X on line 10
Process exited with code 255.
Output for 5.4.8 - 5.4.45
22 de setembro de 2015
Output for 5.4.1 - 5.4.7
27 de outubro de 2015