3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/London'); foreach(range(2015, 2025) as $y) { echo date('j D M Y', strtotime("12th November $y"))."\n"; }
Output for 5.1.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
12 Thu Nov 2015 12 Sat Nov 2016 12 Sun Nov 2017 12 Mon Nov 2018 12 Tue Nov 2019 12 Thu Nov 2020 12 Fri Nov 2021 12 Sat Nov 2022 12 Sun Nov 2023 12 Tue Nov 2024 12 Wed Nov 2025
Output for 5.1.0 - 5.1.1
1 Thu Jan 1970 1 Thu Jan 1970 1 Thu Jan 1970 1 Thu Jan 1970 1 Thu Jan 1970 1 Thu Jan 1970 1 Thu Jan 1970 1 Thu Jan 1970 1 Thu Jan 1970 1 Thu Jan 1970 1 Thu Jan 1970
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/fsSNt 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/fsSNt 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/fsSNt 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/fsSNt on line 3