3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (['es_ES', 'es_AR'] as $locale) { $fmt = new IntlDateFormatter( $locale, IntlDateFormatter::MEDIUM, IntlDateFormatter::MEDIUM, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); var_dump($fmt->format((new DateTime('2020-09-15'))->format('U'))); }
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.31, 7.3.33, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.24, 8.3.0 - 8.3.12
string(22) "14 sept. 2020 15:00:00" string(21) "14 sep. 2020 15:00:00"
Output for 8.0.13
Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in /in/ELTgM:4 Stack trace: #0 {main} thrown in /in/ELTgM on line 4
Process exited with code 255.
Output for 7.3.32, 7.4.26, 7.4.33
Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /in/ELTgM:4 Stack trace: #0 {main} thrown in /in/ELTgM on line 4
Process exited with code 255.

preferences:
79.84 ms | 408 KiB | 5 Q