3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Madrid'); //$time = mktime(12,0,0,1,15,2013); $now = mktime(8,28,0,10,22,2013); $last = mktime(8,28,0,10,19,2013); $agoraMadrid = date("d/m/Y H:i:s", $now); $lastMadrid = date("d/m/Y H:i:s", $last); date_default_timezone_set('America/Sao_Paulo'); $agoraAqui = date("d/m/Y H:i:s", $now); $lastAqui = date("d/m/Y H:i:s", $last); date_default_timezone_set('America/Bahia'); $agoraLa = date("d/m/Y H:i:s", $now); $lastLa = date("d/m/Y H:i:s", $last); printf("22-10-2013\n"); printf("Madrid %-20s\n", $agoraMadrid); printf("Sao Paulo %-20s\n", $agoraAqui); printf("Bahia %-20s\n", $agoraLa); printf("\n19-10-2013\n"); printf("Madrid %-20s\n", $lastMadrid); printf("Sao Paulo %-20s\n", $lastAqui); printf("Bahia %-20s\n", $lastLa);
Output for git.master, git.master_jit, rfc.property-hooks
22-10-2013 Madrid 22/10/2013 08:28:00 Sao Paulo 22/10/2013 04:28:00 Bahia 22/10/2013 03:28:00 19-10-2013 Madrid 19/10/2013 08:28:00 Sao Paulo 19/10/2013 03:28:00 Bahia 19/10/2013 03:28: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:
39.59 ms | 401 KiB | 8 Q