3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/Helsinki'); $it = strtotime('2013-10-08') + 7 * 24 * 3600; for($i=0; $i<=15; $i++) { echo date("Y-m-d h:i:s", $it + $i * 24 * 3600) . "\n"; }
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
2013-10-15 12:00:00 2013-10-16 12:00:00 2013-10-17 12:00:00 2013-10-18 12:00:00 2013-10-19 12:00:00 2013-10-20 12:00:00 2013-10-21 12:00:00 2013-10-22 12:00:00 2013-10-23 12:00:00 2013-10-24 12:00:00 2013-10-25 12:00:00 2013-10-26 12:00:00 2013-10-27 12:00:00 2013-10-27 11:00:00 2013-10-28 11:00:00 2013-10-29 11:00:00
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/i7jiY on line 2
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/i7jiY on line 2
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/i7jiY on line 2
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/i7jiY on line 2