3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('CET'); $time1 = strtotime('02:07:03 Feb 04, 2013 PST'); var_dump($time1); $string1 = date('d-m-Y h:i:s', $time1); var_dump($string1); $time2 = strtotime($string1 . ' GMT'); var_dump($time2); $string2 = date('d-m-Y h:i:s', $time2); var_dump($string2); date_default_timezone_set('GMT'); $time1 = strtotime('02:07:03 Feb 04, 2013 PST'); var_dump($time1); $string1 = date('d-m-Y h:i:s', $time1); var_dump($string1); $time2 = strtotime($string1 . ' GMT'); var_dump($time2); $string2 = date('d-m-Y h:i:s', $time2); var_dump($string2);
Output for git.master, git.master_jit, rfc.property-hooks
int(1359972423) string(19) "04-02-2013 11:07:03" int(1359976023) string(19) "04-02-2013 12:07:03" int(1359972423) string(19) "04-02-2013 10:07:03" int(1359972423) string(19) "04-02-2013 10:07:03"

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:
80.38 ms | 406 KiB | 5 Q