3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zone=new DateTimeZone("America/Edmonton"); $o1=$zone->getOffset(new DateTime("2012-01-01",$zone))/3600; $o2=$zone->getOffset(new DateTime("2012-08-01",$zone))/3600; echo "2012-01-01: ".($o1==-7?"Pass":"Fail ($o1)")."\n"; echo "2012-08-01: ".($o2==-6?"Pass":"Fail ($o2)")."\n";
Output for git.master, git.master_jit
2012-01-01: Pass 2012-08-01: Pass

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:
54.07 ms | 408 KiB | 5 Q