3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-10-12'); $end = new DateTime(); echo round(($end->format('U') - $start->format('U')) / (60*60*24));

preferences:
40.59 ms | 402 KiB | 5 Q