3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date_default_timezone_get() . "\n"; date_default_timezone_set('UTC'); $timestamp = mktime(0,0,0,11,1,2014); echo strtotime('4 thursdays', $timestamp) . "\n"; echo strtotime('first thursday + 3 weeks', $timestamp) . "\n";
based on SB1sI
Output for 5.1.2 - 7.2.0
Europe/Amsterdam 1417068000 1417046400
Output for 5.1.0 - 5.1.1
Europe/Amsterdam 1417068000
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_get() in /in/V3dVd 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_get() in /in/V3dVd 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_get() in /in/V3dVd 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_get() in /in/V3dVd on line 2