3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datetime = 'vendredi 11 février 2022 à 20:19:56 heure normale d’Europe centrale'; $parser = new IntlDateFormatter( 'fr_FR', IntlDateFormatter::FULL, IntlDateFormatter::FULL ); $tsparis = $parser->parse($datetime); var_dump($tsparis);
Output for 8.5.1 - 8.5.3
Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in /in/SuZt7:5 Stack trace: #0 {main} thrown in /in/SuZt7 on line 5
Process exited with code 255.
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0
int(1644607196)

preferences:
62.16 ms | 1245 KiB | 4 Q