3v4l.org

run code in 300+ PHP versions simultaneously
<?php // set the default timezone to use. Available since PHP 5.1 date_default_timezone_set('Etc/GMT+5'); // Prints something like: Monday echo date("l"); // Prints something like: Monday 8th of August 2005 03:12:46 PM echo date('l jS \of F Y h:i:s A'); // Prints: July 1, 2000 is on a Saturday echo " July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000)); /* use the constants in the format parameter */ // prints something like: Wed, 25 Sep 2013 15:28:57 -0700 echo date(DATE_RFC2822); // prints something like: 2000-07-01T00:00:00+00:00 echo date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000)); ?>
Output for git.master, git.master_jit, rfc.property-hooks
ThursdayThursday 2nd of April 2015 03:09:13 AM July 1, 2000 is on a SaturdayThu, 02 Apr 2015 03:09:13 -05002000-07-01T00:00:00-05: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:
57.85 ms | 401 KiB | 8 Q