3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new \IntlDateFormatter(\Locale::getDefault(), \IntlDateFormatter::MEDIUM, \IntlDateFormatter::NONE, new \DateTimeZone('UTC'), \IntlDateFormatter::GREGORIAN, 'yyyy-MM-dd'); var_dump($formatter->parse('950-12-19')); var_dump(date('d.m.Y, H:i:s', $formatter->parse('950-12-19')));
Output for 7.1.25 - 7.1.30, 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
int(-32157216000) string(20) "24.12.0950, 00:19:32"
Output for 8.0.13
Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in /in/QJFTJ:3 Stack trace: #0 {main} thrown in /in/QJFTJ on line 3
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.33
Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /in/QJFTJ:3 Stack trace: #0 {main} thrown in /in/QJFTJ on line 3
Process exited with code 255.

preferences:
166.14 ms | 401 KiB | 170 Q