3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $passwordDate = time() - 60; $passwordDate = new \DateTime("@".$passwordDate); $passwordDate->setTimezone(new \DateTimeZone('America/Chicago')); $now = new \DateTime("now", new \DateTimeZone('America/Chicago')); $now->setTimezone(new \DateTimeZone('America/Chicago')); $now->diff($passwordDate)->format("%a")
Output for 5.4.0 - 5.5.11
Parse error: syntax error, unexpected end of file in /in/vvaOo on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/vvaOo on line 9
Process exited with code 255.