3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('2016-03-30'); $month = DateInterval::createFromDateString('1 month'); var_dump(DateTime::sub($date, $month);
Output for 5.3.7 - 5.3.28, 5.4.0 - 5.4.26
Parse error: syntax error, unexpected ';' in /in/hAIKi on line 4
Process exited with code 255.

preferences:
178.13 ms | 1395 KiB | 56 Q