3v4l.org

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