3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = date('Y-m-d H:m:s'); $end = date('Y-m-d H:m:s', strtotime($start . ' +24 hours')); $days = date('Y-m-d', $end) - date('Y-m-d', $start); echo $days; ?>

preferences:
48.53 ms | 402 KiB | 5 Q