3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $nextmonth=mktime(0,0,0,date(“m”)+1,date(“d”),date(“y”)); echo “Next month is”.date(“d/m/y”,$nextmonth);//it prints next month with today’s date ?>
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'month' (T_STRING), expecting ',' or ';' in /in/Q3cNP on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/Q3cNP on line 3
Process exited with code 255.