3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$start_date =strtotime('2013-02-13 12:02:00'); //$end_date =strtotime('2013-02-20 12:02:00'); //$total = ($end_date- $start_date); //echo date("Y-m-d H:i:s",$total); $date1 = new DateTime('2013-02-13 12:02:00'); $date2 = new DateTime('2013-02-20 12:02:00'); $interval = $date2->diff($date1); echo $interval->format('%Y-%m-%d %H:%i:%s');
Output for git.master, git.master_jit, rfc.property-hooks
00-0-7 00:0:0

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:
38.28 ms | 401 KiB | 8 Q