3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sStartDate = DateTime::createFromFormat('Y-m-d H:i:s', '2013-05-13 21:56:00'); $sEndDate = DateTime::createFromFormat('Y-m-d H:i:s', '2013-05-14 21:56:01'); $diff = date_diff($sStartDate, $sEndDate, true); $days = $diff->format('%a'); if (1 <= $days) { echo '24 hours or more.'; } else { echo 'less than 24 hours.'; }
Output for git.master, git.master_jit, rfc.property-hooks
24 hours or more.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.33 ms | 401 KiB | 8 Q