3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start= "2018-05-17 05:04:34"; $end = "2018-05-17 17:04:34"; //Note that it's intentionally reversed $diff = strtotime(substr($start,11))-strtotime(substr($end,11)); //If the calculation was reversed add one day in seconds if($diff <0) $diff += 86400; If($diff >3600){ Echo "more than one hour"; }Else{ Echo "less than one hour"; }
Output for git.master, git.master_jit, rfc.property-hooks
more than one hour

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:
160.65 ms | 405 KiB | 5 Q