3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $now = mktime(0, 0, 0, date("m"), date("d"), date("Y")); $now1 = mktime(0, 0, 0, date("m")+1, date("d"), date("Y")); $now2 = mktime(0, 0, 0, date("m")+2, date("d"), date("Y")); $now3 = mktime(0, 0, 0, date("m")+3, date("d"), date("Y")); $now4 = mktime(0, 0, 0, date("m")+4, date("d"), date("Y")); $now5 = mktime(0, 0, 0, date("m")+5, date("d"), date("Y")); $now6 = mktime(0, 0, 0, date("m")+6, date("d"), date("Y")); $now7 = mktime(0, 0, 0, date("m")+7, date("d"), date("Y")); $now8 = mktime(0, 0, 0, date("m")+8, date("d"), date("Y")); $now9 = mktime(0, 0, 0, date("m")+9, date("d"), date("Y")); $now10 = mktime(0, 0, 0, date("m")+10, date("d"), date("Y")); $now11 = mktime(0, 0, 0, date("m")+11, date("d"), date("Y")); $now12 = mktime(0, 0, 0, date("m")+12, date("d"), date("Y")); $now13 = mktime(0, 0, 0, date("m")+13, date("d"), date("Y")); $now14 = mktime(0, 0, 0, date("m")+14, date("d"), date("Y")); $now15 = mktime(0, 0, 0, date("m")+15, date("d"), date("Y")); $now16 = mktime(0, 0, 0, date("m")+16, date("d"), date("Y")); $now17 = mktime(0, 0, 0, date("m")+17, date("d"), date("Y")); /* Labels */ $monthlabel = date("F Y", $now); $monthlabel1 = date("F Y", $now1); $monthlabel2 = date("F Y", $now2); $monthlabel3 = date("F Y", $now3); $monthlabel4 = date("F Y", $now4); $monthlabel5 = date("F Y", $now5); $monthlabel6 = date("F Y", $now6); $monthlabel7 = date("F Y", $now7); $monthlabel8 = date("F Y", $now8); $monthlabel9 = date("F Y", $now9); $monthlabel10 = date("F Y", $now10); $monthlabel11 = date("F Y", $now11); $monthlabel12 = date("F Y", $now12); $monthlabel13 = date("F Y", $now13); $monthlabel14 = date("F Y", $now14); $monthlabel15 = date("F Y", $now15); $monthlabel16 = date("F Y", $now16); $monthlabel17 = date("F Y", $now17); /* Values */ echo $monthvalue = $currentpage."?year=".date("Y", $now)."&month=".date("n", $now); echo $monthvalue1 = $currentpage."?year=".date("Y", $now1)."&month=".date("n", $now1); echo $monthvalue2 = $currentpage."?year=".date("Y", $now2)."&month=".date("n", $now2); echo $monthvalue3 = $currentpage."?year=".date("Y", $now3)."&month=".date("n", $now3); echo $monthvalue4 = $currentpage."?year=".date("Y", $now4)."&month=".date("n", $now4); echo $monthvalue5 = $currentpage."?year=".date("Y", $now5)."&month=".date("n", $now5); echo $monthvalue6 = $currentpage."?year=".date("Y", $now6)."&month=".date("n", $now6); echo $monthvalue7 = $currentpage."?year=".date("Y", $now7)."&month=".date("n", $now7); echo $monthvalue8 = $currentpage."?year=".date("Y", $now8)."&month=".date("n", $now8); echo $monthvalue9 = $currentpage."?year=".date("Y", $now9)."&month=".date("n", $now9); echo $monthvalue10 = $currentpage."?year=".date("Y", $now10)."&month=".date("n", $now10); echo $monthvalue11 = $currentpage."?year=".date("Y", $now11)."&month=".date("n", $now11); echo $monthvalue12 = $currentpage."?year=".date("Y", $now12)."&month=".date("n", $now12); echo $monthvalue13 = $currentpage."?year=".date("Y", $now13)."&month=".date("n", $now13); echo $monthvalue14 = $currentpage."?year=".date("Y", $now14)."&month=".date("n", $now14); echo $monthvalue15 = $currentpage."?year=".date("Y", $now15)."&month=".date("n", $now15); echo $monthvalue16 = $currentpage."?year=".date("Y", $now16)."&month=".date("n", $now16); echo $monthvalue17 = $currentpage."?year=".date("Y", $now17)."&month=".date("n", $now17);
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: currentpage in /in/esmm4 on line 42 ?year=2014&month=1 Notice: Undefined variable: currentpage in /in/esmm4 on line 43 ?year=2014&month=3 Notice: Undefined variable: currentpage in /in/esmm4 on line 44 ?year=2014&month=3 Notice: Undefined variable: currentpage in /in/esmm4 on line 45 ?year=2014&month=4 Notice: Undefined variable: currentpage in /in/esmm4 on line 46 ?year=2014&month=5 Notice: Undefined variable: currentpage in /in/esmm4 on line 47 ?year=2014&month=6 Notice: Undefined variable: currentpage in /in/esmm4 on line 48 ?year=2014&month=7 Notice: Undefined variable: currentpage in /in/esmm4 on line 49 ?year=2014&month=8 Notice: Undefined variable: currentpage in /in/esmm4 on line 50 ?year=2014&month=9 Notice: Undefined variable: currentpage in /in/esmm4 on line 51 ?year=2014&month=10 Notice: Undefined variable: currentpage in /in/esmm4 on line 52 ?year=2014&month=11 Notice: Undefined variable: currentpage in /in/esmm4 on line 53 ?year=2014&month=12 Notice: Undefined variable: currentpage in /in/esmm4 on line 54 ?year=2015&month=1 Notice: Undefined variable: currentpage in /in/esmm4 on line 55 ?year=2015&month=3 Notice: Undefined variable: currentpage in /in/esmm4 on line 56 ?year=2015&month=3 Notice: Undefined variable: currentpage in /in/esmm4 on line 57 ?year=2015&month=4 Notice: Undefined variable: currentpage in /in/esmm4 on line 58 ?year=2015&month=5 Notice: Undefined variable: currentpage in /in/esmm4 on line 59 ?year=2015&month=6