3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo strtotime ("now"), "\n"; echo strtotime ("10 September 2000"), "\n"; echo strtotime ("+1 day"), "\n"; echo strtotime ("+1 week"), "\n"; echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "\n"; echo strtotime ("next Thursday"), "\n"; echo strtotime ("last Monday"), "\n";
Output for 5.6.28, 7.0.12 - 7.1.0
1387629120 968536800 1387715520 1388233920 1388421122 1388012400 1387148400
Output for 7.0.6
1463846730 968536800 1463933130 1464451530 1464638732 1464213600 1463349600
Output for 7.0.5
1460640229 968536800 1460726629 1461245029 1461432231 1461189600 1460325600
Output for 5.5.32 - 5.5.33, 5.6.18 - 5.6.19, 7.0.4
1457550384 968536800 1457636784 1458155184 1458342386 1457564400 1457305200
Output for 5.5.31, 5.6.17, 7.0.0 - 7.0.3
1457550385 968536800 1457636785 1458155185 1458342387 1457564400 1457305200
Output for 5.6.21
1462213397 968536800 1462299797 1462818197 1463005399 1462399200 1461535200
Output for 5.6.20
1460283877 968536800 1460370277 1460888677 1461075879 1460584800 1459720800
Output for 5.5.30, 5.6.13 - 5.6.16
1457550386 968536800 1457636786 1458155186 1458342388 1457564400 1457305200
Output for 5.4.44 - 5.4.45, 5.5.28 - 5.5.29, 5.6.12
1457550387 968536800 1457636787 1458155187 1458342389 1457564400 1457305200
Output for 5.4.42 - 5.4.43, 5.5.27, 5.6.10 - 5.6.11
1457550388 968536800 1457636788 1458155188 1458342390 1457564400 1457305200
Output for 5.4.41, 5.5.24 - 5.5.26, 5.6.8 - 5.6.9
1457550389 968536800 1457636789 1458155189 1458342391 1457564400 1457305200
Output for 5.4.38 - 5.4.40, 5.5.23, 5.6.7
1457550390 968536800 1457636790 1458155190 1458342392 1457564400 1457305200
Output for 5.4.36 - 5.4.37, 5.5.21 - 5.5.22, 5.6.5 - 5.6.6
1457550391 968536800 1457636791 1458155191 1458342393 1457564400 1457305200
Output for 5.4.34 - 5.4.35, 5.5.18 - 5.5.20, 5.6.2 - 5.6.4
1457550392 968536800 1457636792 1458155192 1458342394 1457564400 1457305200
Output for 5.3.29, 5.4.31 - 5.4.32, 5.5.16, 5.6.0 - 5.6.1
1457550393 968536800 1457636793 1458155193 1458342395 1457564400 1457305200
Output for 5.5.35
1463987073 968536800 1464073473 1464591873 1464779075 1464213600 1463349600
Output for 5.5.34
1460378374 968536800 1460464774 1460983174 1461170376 1460584800 1459720800
Output for 5.4.27 - 5.4.30, 5.5.12 - 5.5.15
1457550394 968536800 1457636794 1458155194 1458342396 1457564400 1457305200
Output for 5.4.25 - 5.4.26, 5.5.8 - 5.5.11
1457550395 968536800 1457636795 1458155195 1458342397 1457564400 1457305200
Output for 5.3.28, 5.4.21 - 5.4.24, 5.5.6 - 5.5.7
1457550396 968536800 1457636796 1458155196 1458342398 1457564400 1457305200
Output for 5.4.18 - 5.4.20, 5.5.2 - 5.5.5
1457550397 968536800 1457636797 1458155197 1458342399 1457564400 1457305200
Output for 5.3.25 - 5.3.27, 5.4.16 - 5.4.17, 5.5.0 - 5.5.1
1457550398 968536800 1457636798 1458155198 1458342400 1457564400 1457305200
Output for 5.3.22 - 5.3.24, 5.4.12 - 5.4.15
1457550399 968536800 1457636799 1458155199 1458342401 1457564400 1457305200
Output for 5.3.18 - 5.3.21, 5.4.9 - 5.4.11
1457550400 968536800 1457636800 1458155200 1458342402 1457564400 1457305200
Output for 5.3.15 - 5.3.17, 5.4.5 - 5.4.8
1457550401 968536800 1457636801 1458155201 1458342403 1457564400 1457305200
Output for 5.3.11 - 5.3.14, 5.4.2 - 5.4.4
1457550402 968536800 1457636802 1458155202 1458342404 1457564400 1457305200
Output for 5.3.6 - 5.3.10, 5.4.0 - 5.4.1
1457550403 968536800 1457636803 1458155203 1458342405 1457564400 1457305200
Output for 5.2.14 - 5.2.17, 5.3.3 - 5.3.5
1457550404 968536800 1457636804 1458155204 1458342406 1457564400 1457305200
Output for 5.2.8 - 5.2.13, 5.3.0 - 5.3.2
1457550405 968536800 1457636805 1458155205 1458342407 1457564400 1457305200
Output for 4.4.8 - 4.4.9, 5.2.2 - 5.2.7
1457550406 968536800 1457636806 1458155206 1458342408 1457564400 1457305200
Output for 4.4.3 - 4.4.7, 5.1.4 - 5.2.1
1457550407 968536800 1457636807 1458155207 1458342409 1457564400 1457305200
Output for 4.4.0 - 4.4.2, 5.0.5 - 5.1.3
1457550408 968536800 1457636808 1458155208 1458342410 1457564400 1457305200
Output for 5.0.4
1457550408 968536800 1457636808 1458155208 1458342410 1458169200 1457305200
Output for 4.3.7 - 4.3.11, 5.0.3
1457550409 968536800 1457636809 1458155209 1458342411 1458169200 1457305200
Output for 5.0.0 - 5.0.2
1457478000 968536800 1457564400 1458082800 1458270002 1458169200 1457305200
Output for 4.3.0 - 4.3.6
1457550410 968536800 1457636810 1458155210 1458342412 1458169200 1457305200