3v4l.org

run code in 200+ 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.4.0 - 5.6.30, hhvm-3.10.1 - 3.11.1, hhvm-3.13.2, 7.0.0 - 7.0.16, 7.0.19 - 7.3.0rc4
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 hhvm-3.12.14, hhvm-3.15.4 - 3.17.3, 7.0.17 - 7.0.18
a = Mon, 31 Aug 2015 12:58:01 +0100 b = Mon, 31 Aug 2015 12:58:01 +0200 c = Mon, 31 Aug 2015 12:58:01 +0300 d = Mon, 31 Aug 2015 12:58:01 +0400 e = Mon, 31 Aug 2015 12:58:01 +0500 f = Mon, 31 Aug 2015 12:58:01 +0600 g = Mon, 31 Aug 2015 12:58:01 +0700 h = Mon, 31 Aug 2015 12:58:01 +0800 i = Mon, 31 Aug 2015 12:58:01 +0900 k = Mon, 31 Aug 2015 12:58:01 +1000 l = Mon, 31 Aug 2015 12:58:01 +1100 m = Mon, 31 Aug 2015 12:58:01 +1200 n = Mon, 31 Aug 2015 12:58:01 -0100 o = Mon, 31 Aug 2015 12:58:01 -0200 p = Mon, 31 Aug 2015 12:58:01 -0300 q = Mon, 31 Aug 2015 12:58:01 -0400 r = Mon, 31 Aug 2015 12:58:01 -0500 s = Mon, 31 Aug 2015 12:58:01 -0600 t = Mon, 31 Aug 2015 12:58:01 -0700 u = Mon, 31 Aug 2015 12:58:01 -0800 v = Mon, 31 Aug 2015 12:58:01 -0900 w = Mon, 31 Aug 2015 12:58:01 -1000 x = Mon, 31 Aug 2015 12:58:01 -1100 y = Mon, 31 Aug 2015 12:58:01 -1200 z = Mon, 31 Aug 2015 12:58:01 +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.