3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(null, new DateTimeZone('Europe/London')); $france = new \IntlDateFormatter( 'fr_FR', \IntlDateFormatter::NONE, \IntlDateFormatter::NONE, $date->getTimezone() ); $uk = new \IntlDateFormatter( 'en_GB', \IntlDateFormatter::NONE, \IntlDateFormatter::NONE, $date->getTimezone() ); $us = new \IntlDateFormatter( 'en_US', \IntlDateFormatter::NONE, \IntlDateFormatter::NONE, $date->getTimezone() ); echo $france->format($date) . PHP_EOL; echo $uk->format($date) . PHP_EOL; echo $us->format($date) . PHP_EOL;
based on DKD7P
Output for 5.6.28, 7.0.20 - 7.2.0
20150917 11:45 AM 20150917 11:45 am 20150917 11:45 AM
Output for 7.0.6
20160503 01:56 AM 20160503 01:56 am 20160503 01:56 AM
Output for 7.0.5
Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /in/3ibSH:5 Stack trace: #0 {main} thrown in /in/3ibSH on line 5
Process exited with code 255.
Output for 7.0.4
20160310 12:46 AM 20160310 12:46 am 20160310 12:46 AM
Output for 7.0.3
20160318 12:57 AM 20160318 12:57 am 20160318 12:57 AM
Output for 7.0.2
20160321 11:31 AM 20160321 11:31 am 20160321 11:31 AM
Output for 7.0.1
20160323 11:44 AM 20160323 11:44 am 20160323 11:44 AM
Output for 7.0.0
20160326 02:10 PM 20160326 02:10 pm 20160326 02:10 PM
Output for 5.6.21
20160501 08:57 PM 20160501 08:57 pm 20160501 08:57 PM
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/3ibSH on line 5
Process exited with code 255.
Output for 5.6.19
20160306 11:12 PM 20160306 11:12 pm 20160306 11:12 PM
Output for 5.6.18
20160314 11:23 AM 20160314 11:23 am 20160314 11:23 AM
Output for 5.6.17
20160319 05:25 AM 20160319 05:25 am 20160319 05:25 AM
Output for 5.6.16
20160327 03:54 PM 20160327 03:54 pm 20160327 03:54 PM
Output for 5.6.12
20160419 12:24 PM 20160419 12:24 pm 20160419 12:24 PM
Output for 5.6.11
20160422 07:41 PM 20160422 07:41 pm 20160422 07:41 PM
Output for 5.6.10
20160424 09:20 PM 20160424 09:20 pm 20160424 09:20 PM
Output for 5.6.9
20160427 02:31 AM 20160427 02:31 am 20160427 02:31 AM
Output for 5.6.8
20160429 10:08 AM 20160429 10:08 am 20160429 10:08 AM
Output for 5.6.7
20160524 09:21 PM 20160524 09:21 pm 20160524 09:21 PM
Output for 5.5.35
20160522 12:22 AM 20160522 12:22 am 20160522 12:22 AM
Output for 5.5.33
20160308 11:36 AM 20160308 11:36 am 20160308 11:36 AM
Output for 5.5.32
20160316 05:19 PM 20160316 05:19 pm 20160316 05:19 PM
Output for 5.5.31
20160320 08:18 AM 20160320 08:18 am 20160320 08:18 AM
Output for 5.5.28
20160420 03:41 PM 20160420 03:41 pm 20160420 03:41 PM
Output for 5.5.27
20160421 06:11 PM 20160421 06:11 pm 20160421 06:11 PM
Output for 5.5.26
20160425 11:47 PM 20160425 11:47 pm 20160425 11:47 PM
Output for 5.5.25
20160428 05:48 AM 20160428 05:48 am 20160428 05:48 AM
Output for 5.5.24
20160430 01:16 PM 20160430 01:16 pm 20160430 01:16 PM
Output for 5.4.0 - 5.4.45
Warning: IntlDateFormatter::__construct() expects parameter 4 to be string, object given in /in/3ibSH on line 10 Warning: IntlDateFormatter::__construct() expects parameter 4 to be string, object given in /in/3ibSH on line 17 Warning: IntlDateFormatter::__construct() expects parameter 4 to be string, object given in /in/3ibSH on line 24 Fatal error: Call to a member function format() on a non-object in /in/3ibSH on line 26
Process exited with code 255.