3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime('2015-11-09'); $then = new DateTime('2016-03-31'); echo date_diff($now, $then);

preferences:
34.69 ms | 402 KiB | 5 Q