3v4l.org

run code in 300+ PHP versions simultaneously
<?php $next month=mktime(0,0,0,date(“m”)+1,date(“d”),date(“y”)); echo “Next month is”.date(“d/m/y”,$next month);//it prints next month with today’s date ?>
Output for 5.4.17
Parse error: syntax error, unexpected 'month' (T_STRING) in /in/j5VAI on line 2
Process exited with code 255.
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected 'month' (T_STRING) in 7fetB on line 2
Process exited with code 255.
Output for 5.3.4 - 5.3.24, 5.3.26
Parse error: syntax error, unexpected T_STRING in 7fetB on line 2
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected T_STRING in /in/j5VAI on line 2
Process exited with code 255.

preferences:
164.22 ms | 1394 KiB | 48 Q