- Output for 5.6.0 - 5.6.27, 7.0.0 - 7.0.12
- Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /in/eRU7L on line 4
Process exited with code 255.
<?php
$d = new \DateTime('6 month');
$d->->setTime(23, 59, 59);
var_dump($d->format('c'));