3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime("20150717T090000Z"); $dt->setTimeZone( new DateTimezone('Europe/Berlin') ); $dta=explode("T",$dt->format(DateTime::ATOM)); $dtb=explode("+",$dta[1]); $dt = new DateTime("20150717T100000Z"); $dt->setTimeZone( new DateTimezone('Europe/Berlin') ); $dtc=explode("T",$dt->format(DateTime::ATOM)); $dtd=explode("+",$dtc[1]); $h1=strtotime($dtd[0]); $h2=strtotime($dtc[0]); $h=gmdate('H',$h1-$h2); $i = gmdate('i',$h1-$h2); echo $dtd[0]; $duration = (int)$h*60 + (int)$i; //echo $duration;
Output for git.master, git.master_jit, rfc.property-hooks
12:00:00

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