3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $date = 5; $a = date('Y-m-d', strtotime('+1 month', strtotime($date)); echo $a; ?> </body> </html>
Output for 7.0.0 - 7.0.14, 7.1.0
Parse error: syntax error, unexpected ';', expecting ',' or ')' in /in/tEqE2 on line 7
Process exited with code 255.
Output for 5.6.0 - 5.6.29
Parse error: syntax error, unexpected ';' in /in/tEqE2 on line 7
Process exited with code 255.

preferences:
185.61 ms | 1386 KiB | 53 Q