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; echo $date->format('F j, Y, g:i a');
based on 3ibSH
Output for 5.6.28, 7.0.20 - 7.2.0
20150917 11:47 AM 20150917 11:47 am 20150917 11:47 AM September 17, 2015, 11:47 am
Output for 7.0.6
20160503 06:19 AM 20160503 06:19 am 20160503 06:19 AM May 3, 2016, 6:19 am
Output for 7.0.5
Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /in/npHgN:5 Stack trace: #0 {main} thrown in /in/npHgN on line 5
Process exited with code 255.
Output for 7.0.4
20160310 05:30 AM 20160310 05:30 am 20160310 05:30 AM March 10, 2016, 5:30 am
Output for 7.0.3
20160318 05:59 AM 20160318 05:59 am 20160318 05:59 AM March 18, 2016, 5:59 am
Output for 7.0.2
20160322 11:32 AM 20160322 11:32 am 20160322 11:32 AM March 22, 2016, 11:32 am
Output for 7.0.1
20160323 04:51 PM 20160323 04:51 pm 20160323 04:51 PM March 23, 2016, 4:51 pm
Output for 7.0.0
20160326 06:33 PM 20160326 06:33 pm 20160326 06:33 PM March 26, 2016, 6:33 pm
Output for 5.6.21
20160502 01:37 AM 20160502 01:37 am 20160502 01:37 AM May 2, 2016, 1:37 am
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/npHgN on line 5
Process exited with code 255.
Output for 5.6.19
20160307 07:40 AM 20160307 07:40 am 20160307 07:40 AM March 7, 2016, 7:40 am
Output for 5.6.18
20160314 08:14 PM 20160314 08:14 pm 20160314 08:14 PM March 14, 2016, 8:14 pm
Output for 5.6.17
20160319 10:19 AM 20160319 10:19 am 20160319 10:19 AM March 19, 2016, 10:19 am
Output for 5.6.16
20160327 08:18 PM 20160327 08:18 pm 20160327 08:18 PM March 27, 2016, 8:18 pm
Output for 5.6.12
20160419 05:15 PM 20160419 05:15 pm 20160419 05:15 PM April 19, 2016, 5:15 pm
Output for 5.6.11
20160423 12:14 AM 20160423 12:14 am 20160423 12:14 AM April 23, 2016, 12:14 am
Output for 5.6.10
20160425 02:06 AM 20160425 02:06 am 20160425 02:06 AM April 25, 2016, 2:06 am
Output for 5.6.9
20160427 07:03 AM 20160427 07:03 am 20160427 07:03 AM April 27, 2016, 7:03 am
Output for 5.6.8
20160429 03:00 PM 20160429 03:00 pm 20160429 03:00 PM April 29, 2016, 3:00 pm
Output for 5.6.7
20160525 07:46 AM 20160525 07:46 am 20160525 07:46 AM May 25, 2016, 7:46 am
Output for 5.5.35
20160522 05:15 AM 20160522 05:15 am 20160522 05:15 AM May 22, 2016, 5:15 am
Output for 5.5.33
20160308 04:25 PM 20160308 04:25 pm 20160308 04:25 PM March 8, 2016, 4:25 pm
Output for 5.5.32
20160316 10:28 PM 20160316 10:28 pm 20160316 10:28 PM March 16, 2016, 10:28 pm
Output for 5.5.31
20160320 01:07 PM 20160320 01:07 pm 20160320 01:07 PM March 20, 2016, 1:07 pm
Output for 5.5.28
20160420 08:20 PM 20160420 08:20 pm 20160420 08:20 PM April 20, 2016, 8:20 pm
Output for 5.5.27
20160421 10:46 PM 20160421 10:46 pm 20160421 10:46 PM April 21, 2016, 10:46 pm
Output for 5.5.26
20160426 04:31 AM 20160426 04:31 am 20160426 04:31 AM April 26, 2016, 4:31 am
Output for 5.5.25
20160428 10:34 AM 20160428 10:34 am 20160428 10:34 AM April 28, 2016, 10:34 am
Output for 5.5.24
20160523 05:30 PM 20160523 05:30 pm 20160523 05:30 PM May 23, 2016, 5:30 pm
Output for 5.4.0 - 5.4.45
Warning: IntlDateFormatter::__construct() expects parameter 4 to be string, object given in /in/npHgN on line 10 Warning: IntlDateFormatter::__construct() expects parameter 4 to be string, object given in /in/npHgN on line 17 Warning: IntlDateFormatter::__construct() expects parameter 4 to be string, object given in /in/npHgN on line 24 Fatal error: Call to a member function format() on a non-object in /in/npHgN on line 26
Process exited with code 255.