3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach (range("a", "z") as $l) { if ($l == "j") continue; printf("%s = %s\n", $l, (new DateTime($l))->format("r")); }
Output for 5.6.28, 7.0.14 - 7.1.0
a = Mon, 31 Aug 2015 12:58:00 +0100 b = Mon, 31 Aug 2015 12:58:00 +0200 c = Mon, 31 Aug 2015 12:58:00 +0300 d = Mon, 31 Aug 2015 12:58:00 +0400 e = Mon, 31 Aug 2015 12:58:00 +0500 f = Mon, 31 Aug 2015 12:58:00 +0600 g = Mon, 31 Aug 2015 12:58:00 +0700 h = Mon, 31 Aug 2015 12:58:00 +0800 i = Mon, 31 Aug 2015 12:58:00 +0900 k = Mon, 31 Aug 2015 12:58:00 +1000 l = Mon, 31 Aug 2015 12:58:00 +1100 m = Mon, 31 Aug 2015 12:58:00 +1200 n = Mon, 31 Aug 2015 12:58:00 -0100 o = Mon, 31 Aug 2015 12:58:00 -0200 p = Mon, 31 Aug 2015 12:58:00 -0300 q = Mon, 31 Aug 2015 12:58:00 -0400 r = Mon, 31 Aug 2015 12:58:00 -0500 s = Mon, 31 Aug 2015 12:58:00 -0600 t = Mon, 31 Aug 2015 12:58:00 -0700 u = Mon, 31 Aug 2015 12:58:00 -0800 v = Mon, 31 Aug 2015 12:58:00 -0900 w = Mon, 31 Aug 2015 12:58:00 -1000 x = Mon, 31 Aug 2015 12:58:00 -1100 y = Mon, 31 Aug 2015 12:58:00 -1200 z = Mon, 31 Aug 2015 12:58:00 +0000
Output for 5.4.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.7
a = Mon, 30 Sep 2013 10:16:50 +0100 b = Mon, 30 Sep 2013 10:16:50 +0200 c = Mon, 30 Sep 2013 10:16:50 +0300 d = Mon, 30 Sep 2013 10:16:50 +0400 e = Mon, 30 Sep 2013 10:16:50 +0500 f = Mon, 30 Sep 2013 10:16:50 +0600 g = Mon, 30 Sep 2013 10:16:50 +0700 h = Mon, 30 Sep 2013 10:16:50 +0800 i = Mon, 30 Sep 2013 10:16:50 +0900 k = Mon, 30 Sep 2013 10:16:50 +1000 l = Mon, 30 Sep 2013 10:16:50 +1100 m = Mon, 30 Sep 2013 10:16:50 +1200 n = Mon, 30 Sep 2013 10:16:50 -0100 o = Mon, 30 Sep 2013 10:16:50 -0200 p = Mon, 30 Sep 2013 10:16:50 -0300 q = Mon, 30 Sep 2013 10:16:50 -0400 r = Mon, 30 Sep 2013 10:16:50 -0500 s = Mon, 30 Sep 2013 10:16:50 -0600 t = Mon, 30 Sep 2013 10:16:50 -0700 u = Mon, 30 Sep 2013 10:16:50 -0800 v = Mon, 30 Sep 2013 10:16:50 -0900 w = Mon, 30 Sep 2013 10:16:50 -1000 x = Mon, 30 Sep 2013 10:16:50 -1100 y = Mon, 30 Sep 2013 10:16:50 -1200 z = Mon, 30 Sep 2013 10:16:50 +0000
Output for 5.6.22
a = Mon, 30 Sep 2013 10:16:51 +0100 b = Mon, 30 Sep 2013 10:16:51 +0200 c = Mon, 30 Sep 2013 10:16:51 +0300 d = Mon, 30 Sep 2013 10:16:51 +0400 e = Mon, 30 Sep 2013 10:16:51 +0500 f = Mon, 30 Sep 2013 10:16:51 +0600 g = Mon, 30 Sep 2013 10:16:51 +0700 h = Mon, 30 Sep 2013 10:16:51 +0800 i = Mon, 30 Sep 2013 10:16:51 +0900 k = Mon, 30 Sep 2013 10:16:51 +1000 l = Mon, 30 Sep 2013 10:16:51 +1100 m = Mon, 30 Sep 2013 10:16:51 +1200 n = Mon, 30 Sep 2013 10:16:51 -0100 o = Mon, 30 Sep 2013 10:16:51 -0200 p = Mon, 30 Sep 2013 10:16:51 -0300 q = Mon, 30 Sep 2013 10:16:51 -0400 r = Mon, 30 Sep 2013 10:16:51 -0500 s = Mon, 30 Sep 2013 10:16:51 -0600 t = Mon, 30 Sep 2013 10:16:51 -0700 u = Mon, 30 Sep 2013 10:16:51 -0800 v = Mon, 30 Sep 2013 10:16:51 -0900 w = Mon, 30 Sep 2013 10:16:51 -1000 x = Mon, 30 Sep 2013 10:16:51 -1100 y = Mon, 30 Sep 2013 10:16:51 -1200 z = Mon, 30 Sep 2013 10:16:51 +0000
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/VS3Uf on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/VS3Uf on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/VS3Uf on line 4
Process exited with code 255.