3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formater = IntlDateFormatter::create('cz_CZ', IntlDateFormatter::MEDIUM, IntlDateFormatter::SHORT); var_dump($formater->format ( new DateTime('now') ));
Output for 8.1.26 - 8.1.27, 8.2.13 - 8.2.14, 8.2.16 - 8.2.17, 8.3.0 - 8.3.1, 8.3.3 - 8.3.4
Fatal error: Uncaught Error: Found unconstructed IntlDateFormatter in /in/SDLp9:5 Stack trace: #0 /in/SDLp9(5): IntlDateFormatter->format(Object(DateTime)) #1 {main} thrown in /in/SDLp9 on line 5
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 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.24, 8.2.0 - 8.2.11, 8.2.15, 8.3.2
string(21) "Jan 7, 2016, 11:16 AM"
Output for 8.1.25, 8.2.12
Fatal error: Uncaught Error: Call to a member function format() on null in /in/SDLp9:5 Stack trace: #0 {main} thrown in /in/SDLp9 on line 5
Process exited with code 255.
Output for 8.0.13
Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in /in/SDLp9:3 Stack trace: #0 {main} thrown in /in/SDLp9 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/SDLp9:3 Stack trace: #0 {main} thrown in /in/SDLp9 on line 3
Process exited with code 255.

preferences:
243.07 ms | 401 KiB | 326 Q