3v4l.org

run code in 300+ PHP versions simultaneously
<<?php $date = new DateTime(); $dateFormatter = IntlDateFormatter::create( Locale::getDefault(), IntlDateFormatter::NONE, IntlDateFormatter::NONE, date_default_timezone_get(), IntlDateFormatter::GREGORIAN, 'MM-d-yyyy' ); var_dump($dateFormatter->format($date)); // string(6) "Monday"
Output for 5.4.0 - 5.4.45, 5.6.28, 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<string(10) "10-28-2015"
Output for 8.0.13
< Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in /in/thAaZ:4 Stack trace: #0 {main} thrown in /in/thAaZ on line 4
Process exited with code 255.
Output for 7.0.5, 7.3.32 - 7.3.33, 7.4.33
< Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /in/thAaZ:4 Stack trace: #0 {main} thrown in /in/thAaZ on line 4
Process exited with code 255.
Output for 7.0.6
<string(9) "05-3-2016"
Output for 7.0.4
<string(10) "03-10-2016"
Output for 7.0.3
<string(10) "03-18-2016"
Output for 7.0.2
<string(10) "03-23-2016"
Output for 7.0.1
<string(10) "03-24-2016"
Output for 7.0.0
<string(10) "03-27-2016"
Output for 5.6.21
<string(9) "05-2-2016"
Output for 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/thAaZ on line 4
Process exited with code 255.
Output for 5.6.19
<string(9) "03-8-2016"
Output for 5.6.18
<string(10) "03-15-2016"
Output for 5.6.17
<string(10) "03-19-2016"
Output for 5.6.16
<string(10) "03-28-2016"
Output for 5.6.12
<string(10) "04-20-2016"
Output for 5.6.11
<string(10) "04-24-2016"
Output for 5.6.10
<string(10) "04-25-2016"
Output for 5.6.9
<string(10) "04-27-2016"
Output for 5.6.8
<string(10) "04-30-2016"
Output for 5.5.35
<string(10) "05-22-2016"
Output for 5.5.33
<string(9) "03-9-2016"
Output for 5.5.32
<string(10) "03-17-2016"
Output for 5.5.31
<string(10) "03-21-2016"
Output for 5.5.28
<string(10) "04-21-2016"
Output for 5.5.27
<string(10) "04-22-2016"
Output for 5.5.26
<string(10) "04-26-2016"
Output for 5.5.25
<string(10) "04-28-2016"
Output for 5.5.24
<string(10) "05-24-2016"

preferences:
216.42 ms | 401 KiB | 257 Q