3v4l.org

run code in 300+ PHP versions simultaneously
<?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());
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught IntlException: datefmt_create: No such time zone: '1': U_ILLEGAL_ARGUMENT_ERROR in /in/4EB2X:6 Stack trace: #0 /in/4EB2X(6): IntlDateFormatter->__construct('pt_BR', 1, -1, '1') #1 {main} thrown in /in/4EB2X on line 6
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.92 ms | 401 KiB | 8 Q