3v4l.org

run code in 500+ PHP versions simultaneously
<?php $date1 = new DateTime('13-04-1956'); $date2 = new DateTime('01-01-1900'); $date3 = new DateTime('31-12-2050'); $fmt = new \IntlDateFormatter( 'fr', \IntlDateFormatter::FULL, \IntlDateFormatter::NONE ); echo $fmt->format($date1), "\n", $fmt->format($date2), "\n", $fmt->format($date3);
Output for 8.5.1 - 8.5.12, 8.0.13
Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in /in/FVXen:6 Stack trace: #0 {main} thrown in /in/FVXen on line 6
Process exited with code 255.
Output for 8.4.15 - 8.4.27, 8.5.0, 8.3.28 - 8.3.35, 8.2.30 - 8.2.34, 8.1.34
vendredi 13 avril 1956 dimanche 31 décembre 1899 samedi 31 décembre 2050
Output for 8.4.1 - 8.4.14, 8.3.0 - 8.3.27, 8.2.0 - 8.2.29, 8.0.14 - 8.0.30, 8.1.0 - 8.1.33, 8.0.0 - 8.0.12, 7.3.33, 7.4.0 - 7.4.32, 7.3.0 - 7.3.31
vendredi 13 avril 1956 lundi 1 janvier 1900 samedi 31 décembre 2050
Output for 7.4.33, 7.3.32
Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /in/FVXen:6 Stack trace: #0 {main} thrown in /in/FVXen on line 6
Process exited with code 255.

preferences:
26.15 ms | 1201 KiB | 6 Q