3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* Labels */ $monthlabel = date(now); $monthlabel1 = mktime(0, 0, 0, date("m")+1, date("d"), date("Y")); $monthlabel2 = mktime(0, 0, 0, date("m")+2, date("d"), date("Y")); $monthlabel3 = mktime(0, 0, 0, date("m")+3, date("d"), date("Y")); $monthlabel4 = mktime(0, 0, 0, date("m")+4, date("d"), date("Y")); $monthlabel5 = mktime(0, 0, 0, date("m")+5, date("d"), date("Y")); $monthlabel6 = mktime(0, 0, 0, date("m")+6, date("d"), date("Y")); $monthlabel7 = mktime(0, 0, 0, date("m")+7, date("d"), date("Y")); $monthlabel8 = mktime(0, 0, 0, date("m")+8, date("d"), date("Y")); $monthlabel9 = mktime(0, 0, 0, date("m")+9, date("d"), date("Y")); $monthlabel10 = mktime(0, 0, 0, date("m")+10, date("d"), date("Y")); $monthlabel11 = mktime(0, 0, 0, date("m")+11, date("d"), date("Y")); $monthlabel12 = mktime(0, 0, 0, date("m")+12, date("d"), date("Y")); $monthlabel13 = mktime(0, 0, 0, date("m")+13, date("d"), date("Y")); $monthlabel14 = mktime(0, 0, 0, date("m")+14, date("d"), date("Y")); $monthlabel15 = mktime(0, 0, 0, date("m")+15, date("d"), date("Y")); $monthlabel16 = mktime(0, 0, 0, date("m")+16, date("d"), date("Y")); $monthlabel17 = mktime(0, 0, 0, date("m")+17, date("d"), date("Y")); 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 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
Notice: Use of undefined constant now - assumed 'now' in /in/VVI2l on line 4 1385523748 968536800 1385610148 1386128548 1386315750 1385593200 1385334000
Output for 4.3.0 - 4.3.11, 5.0.3 - 5.0.4
Notice: Use of undefined constant now - assumed 'now' in /in/VVI2l on line 4 1385523748 968536800 1385610148 1386128548 1386315750 1386198000 1385334000
Output for 5.0.0 - 5.0.2
Notice: Use of undefined constant now - assumed 'now' in /in/VVI2l on line 4 1385506800 968536800 1385593200 1386111600 1386298802 1386198000 1385334000