3v4l.org

run code in 300+ PHP versions simultaneously
<?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.4.27, 5.5.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.

preferences:
186.45 ms | 1394 KiB | 76 Q