3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/London'); foreach(range(2015, 2020) as $y) { echo date('j D M Y', strtotime("12th November $y")); }
Output for 5.1.2 - 7.1.0
12 Thu Nov 201512 Sat Nov 201612 Sun Nov 201712 Mon Nov 201812 Tue Nov 201912 Thu Nov 2020
Output for 5.1.0 - 5.1.1
1 Thu Jan 19701 Thu Jan 19701 Thu Jan 19701 Thu Jan 19701 Thu Jan 19701 Thu Jan 1970
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/OpHjF on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/OpHjF on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/OpHjF on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/OpHjF on line 3