3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $now = mktime(0, 0, 0, date("m")+1, date("d"), date("Y")); /* Labels */ $monthlabel = date('Y', $now).'&month='.date('n', $now); /* Values */ $monthvalue = date("Y&month=n",$monthlabel); echo $monthlabel;
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: A non well formed numeric value encountered in /in/Yi3hP on line 10 2013&month=12
Output for 4.3.0 - 5.0.5, hhvm-3.10.0 - 3.12.0
2013&month=12