3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fmt = datefmt_create( "pl_PL" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN ); echo "".datefmt_format( $fmt , 0); $fmt = datefmt_create( "pl_PL" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN ,"MM/dd/yyyy"); echo " | pattern: ".datefmt_format( $fmt , 0); ?>
based on 3Okg7
Output for 7.2.0
środa, 31 grudnia 1969 16:00:00 czas pacyficzny standardowy | pattern: 12/31/1969
Output for 5.4.11 - 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.1.10
środa, 31 grudnia 1969 16:00:00 Czas pacyficzny standardowy | pattern: 12/31/1969
Output for 7.0.5
Fatal error: Uncaught Error: Call to undefined function datefmt_create() in /in/m9bsI:2 Stack trace: #0 {main} thrown in /in/m9bsI on line 2
Process exited with code 255.
Output for 5.3.21 - 5.3.29, 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
Fatal error: Call to undefined function datefmt_create() in /in/m9bsI on line 2
Process exited with code 255.