3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Undefined constant "now" in /in/VVI2l:4 Stack trace: #0 {main} thrown in /in/VVI2l on line 4
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Warning: Use of undefined constant now - assumed 'now' (this will throw an Error in a future version of PHP) in /in/VVI2l on line 4 1385523748 968536800 1385610148 1386128548 1386315750 1385593200 1385334000
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant now - assumed 'now' (this will throw an Error in a future version of PHP) in /in/VVI2l on line 4 1385523748 968544000 1385610148 1386128548 1386315750 1385596800 1385337600
Output for 4.4.0 - 4.4.9, 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.8, 5.5.10 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Notice: Use of undefined constant now - assumed 'now' in /in/VVI2l on line 4 1385523748 968536800 1385610148 1386128548 1386315750 1385593200 1385334000
Output for 5.5.9
Notice: Use of undefined constant now - assumed 'now' in /in/VVI2l on line 4 1385523749 968536800 1385610149 1386128549 1386315751 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

preferences:
307.42 ms | 401 KiB | 455 Q