3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); $currentDate = date('01-15-14'); $start = strtotime('01-12-14'); $end = strtotime('02-12-14'); $timestamp = strtotime($currentDate); if($timestamp >= $start && $timestamp <= $end) { echo $currentDate; echo "The date $currentDate is within our date range\n"; } else { echo " timestamp is $timestamp"; echo "start is $start"; echo "end is $end "; echo "The date $currentDate is NOT within our date range\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
timestamp is start is 1008316800end is 1039852800 The date 01-15-14 is NOT within our date range

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