3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = new DateTime(); Locale::setDefault('en_US'); $formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo $formatter->format($time)."\n"; Locale::setDefault('en_GB'); $formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo $formatter->format($time)."\n"; Locale::setDefault('no_NO'); $formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo $formatter->format($time)."\n";
based on h5o1A
Output for 5.4.0 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
Oct 28, 2015 28 Oct 2015 28. okt. 2015
Output for 7.0.6
May 3, 2016 3 May 2016 3. mai 2016
Output for 7.0.5
Fatal error: Uncaught Error: Class 'Locale' not found in /in/PM4ZN:5 Stack trace: #0 {main} thrown in /in/PM4ZN on line 5
Process exited with code 255.
Output for 7.0.4
Mar 10, 2016 10 Mar 2016 10. mar. 2016
Output for 7.0.3
Mar 18, 2016 18 Mar 2016 18. mar. 2016
Output for 7.0.2
Mar 23, 2016 23 Mar 2016 23. mar. 2016
Output for 7.0.1
Mar 24, 2016 24 Mar 2016 24. mar. 2016
Output for 7.0.0
Mar 27, 2016 27 Mar 2016 27. mar. 2016
Output for 5.6.21
May 2, 2016 2 May 2016 2. mai 2016
Output for 5.3.19 - 5.3.29, 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
Fatal error: Class 'Locale' not found in /in/PM4ZN on line 5
Process exited with code 255.
Output for 5.6.19
Mar 8, 2016 8 Mar 2016 8. mar. 2016
Output for 5.6.18
Mar 15, 2016 15 Mar 2016 15. mar. 2016
Output for 5.6.17
Mar 19, 2016 19 Mar 2016 19. mar. 2016
Output for 5.6.16
Mar 28, 2016 28 Mar 2016 28. mar. 2016
Output for 5.6.12
Apr 20, 2016 20 Apr 2016 20. apr. 2016
Output for 5.6.11
Apr 24, 2016 24 Apr 2016 24. apr. 2016
Output for 5.6.10
Apr 25, 2016 25 Apr 2016 25. apr. 2016
Output for 5.6.9
Apr 27, 2016 27 Apr 2016 27. apr. 2016
Output for 5.6.8
Apr 30, 2016 30 Apr 2016 30. apr. 2016
Output for 5.5.35
May 22, 2016 22 May 2016 22. mai 2016
Output for 5.5.33
Mar 9, 2016 9 Mar 2016 9. mar. 2016
Output for 5.5.32
Mar 17, 2016 17 Mar 2016 17. mar. 2016
Output for 5.5.31
Mar 21, 2016 21 Mar 2016 21. mar. 2016
Output for 5.5.28
Apr 21, 2016 21 Apr 2016 21. apr. 2016
Output for 5.5.27
Apr 22, 2016 22 Apr 2016 22. apr. 2016
Output for 5.5.26
Apr 26, 2016 26 Apr 2016 26. apr. 2016
Output for 5.5.25
Apr 28, 2016 28 Apr 2016 28. apr. 2016
Output for 5.5.24
May 24, 2016 24 May 2016 24. mai 2016