- Output for 7.0.0 - 7.0.17, 7.1.0 - 7.1.3
- Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/hFIlY on line 3
Process exited with code 255.
<?php
$dob = new \DateTimeImmutable('now - 100 years')->setTime(0,0,0);
$hundredYearsAgo = new \DateTimeImmutable('now - 100 years')->setTime(0,0,0);
var_dump($dob);
var_dump($hundredYearsAgo);
var_dump($dob <= $hundredYearsAgo);