3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = (new \DateTime('02 Feb 2014 14:34')); $now = (new \DateTime()); $length = (new \DateTimeInterval('1y')); var_dump(['start' => $start, 'now' => $now, 'length' => $length]);

preferences:
53.01 ms | 402 KiB | 5 Q