3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = getdate(); $last2Months = getdate(strtotime("2 months ago", $today[0])); var_dump($last2Months); $nextMonth = getdate(strtotime("+1 month",$last2Months[0]); var_dump($nextMonth);
Output for 5.3.0 - 5.3.26, 5.4.0 - 5.4.16
Parse error: syntax error, unexpected ';' in /in/OAIaJ on line 5
Process exited with code 255.

preferences:
180.52 ms | 1387 KiB | 51 Q