3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set ('Australia/Sydney'); #date_default_timezone_set ('America/Los_Angeles'); $time_now= strtotime( "02-10-2016 00:30:00"); $end_time = strtotime(date('c',$time_now)." midnight"); $start_time = strtotime(date('c',$time_now)." midnight -1 days"); echo "\nNow: ".date('c',$time_now)."< Start: ".date('c' ,$start_time)."< End: ".date('c' ,$end_time)."<\n\n"; $time_now= strtotime( "03-10-2016 00:30:00"); $end_time = strtotime(date('c',$time_now)." midnight"); $start_time = strtotime(date('c',$time_now)." midnight -1 days"); echo "Now: ".date('c',$time_now)."< Start: ".date('c' ,$start_time)."< End: ".date('c' ,$end_time)."<\n\n"; $time_now= strtotime( "04-10-2016 00:30:00"); $end_time = strtotime(date('c',$time_now)." midnight"); $start_time = strtotime(date('c',$time_now)." midnight -1 days"); echo "Now: ".date('c',$time_now)."< Start: ".date('c' ,$start_time)."< End: ".date('c' ,$end_time)."<\n\n";
Output for git.master, git.master_jit, rfc.property-hooks
Now: 2016-10-02T00:30:00+10:00< Start: 2016-10-01T00:00:00+10:00< End: 2016-10-02T00:00:00+10:00< Now: 2016-10-03T00:30:00+11:00< Start: 2016-10-01T23:00:00+10:00< End: 2016-10-03T00:00:00+11:00< Now: 2016-10-04T00:30:00+11:00< Start: 2016-10-03T00:00:00+11:00< End: 2016-10-04T00:00:00+11: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:
116.64 ms | 406 KiB | 5 Q