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.0.13, 8.5.1 - 8.5.3
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.1.34, 8.2.30, 8.3.28 - 8.3.30, 8.4.15 - 8.4.18, 8.5.0
vendredi 13 avril 1956 dimanche 31 décembre 1899 samedi 31 décembre 2050
Output for 7.3.0 - 7.3.31, 7.3.33, 7.4.0 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14
vendredi 13 avril 1956 lundi 1 janvier 1900 samedi 31 décembre 2050
Output for 7.3.32, 7.4.33
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:
107.65 ms | 1369 KiB | 4 Q