3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <body> <?php $date = 5; $a = date('Y-m-d', strtotime('+1 month', strtotime($date)); echo $a; ?> </body> </html>
based on a5L2Y
Output for 7.0.0 - 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.