3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "fecha: ".(new \DateTime())->format('Y-m-d H:i:s'); echo $a; echo (new \DateTime())->format('Y-m-d H:i:s');
Output for 5.6.28, 7.0.14 - 7.2.6
fecha: 2014-07-15 15:51:122014-07-15 15:51:12
Output for 7.0.6
fecha: 2016-05-03 07:11:022016-05-03 07:11:02
Output for 7.0.5
fecha: 2016-04-02 20:10:522016-04-02 20:10:52
Output for 7.0.4
fecha: 2016-03-10 06:20:582016-03-10 06:20:58
Output for 7.0.3
fecha: 2016-03-18 06:48:572016-03-18 06:48:57
Output for 7.0.2
fecha: 2016-03-22 12:21:482016-03-22 12:21:48
Output for 7.0.1
fecha: 2016-03-23 17:42:332016-03-23 17:42:33
Output for 7.0.0
fecha: 2016-03-26 19:24:102016-03-26 19:24:10
Output for 5.6.21
fecha: 2016-05-02 02:28:242016-05-02 02:28:24
Output for 5.6.20
fecha: 2016-04-09 16:19:592016-04-09 16:19:59
Output for 5.6.19
fecha: 2016-03-07 07:51:462016-03-07 07:51:46
Output for 5.6.18
fecha: 2016-03-14 20:45:032016-03-14 20:45:03
Output for 5.6.17
fecha: 2016-03-19 11:08:482016-03-19 11:08:48
Output for 5.6.16
fecha: 2016-03-27 21:09:082016-03-27 21:09:08
Output for 5.6.15
fecha: 2016-03-28 22:01:212016-03-28 22:01:21
Output for 5.6.14
fecha: 2016-04-02 00:29:432016-04-02 00:29:43
Output for 5.6.13
fecha: 2016-04-15 04:33:562016-04-15 04:33:56
Output for 5.6.12
fecha: 2016-04-19 18:06:332016-04-19 18:06:33
Output for 5.6.11
fecha: 2016-04-23 01:04:422016-04-23 01:04:42
Output for 5.6.10
fecha: 2016-04-25 02:56:022016-04-25 02:56:02
Output for 5.6.9
fecha: 2016-04-27 07:54:272016-04-27 07:54:27
Output for 5.6.8
fecha: 2016-04-29 15:50:352016-04-29 15:50:35
Output for 5.6.7
fecha: 2016-05-25 08:18:392016-05-25 08:18:39
Output for 5.5.35
fecha: 2016-05-22 06:06:062016-05-22 06:06:06
Output for 5.5.34
fecha: 2016-04-10 21:25:072016-04-10 21:25:07
Output for 5.5.33
fecha: 2016-03-08 17:15:282016-03-08 17:15:28
Output for 5.5.32
fecha: 2016-03-16 23:17:562016-03-16 23:17:56
Output for 5.5.31
fecha: 2016-03-20 13:57:232016-03-20 13:57:23
Output for 5.5.30
fecha: 2016-04-01 00:00:572016-04-01 00:00:57
Output for 5.5.29
fecha: 2016-04-16 18:38:502016-04-16 18:38:50
Output for 5.5.28
fecha: 2016-04-20 21:10:592016-04-20 21:10:59
Output for 5.5.27
fecha: 2016-04-21 23:37:082016-04-21 23:37:08
Output for 5.5.26
fecha: 2016-04-26 05:22:172016-04-26 05:22:17
Output for 5.5.25
fecha: 2016-04-28 11:25:072016-04-28 11:25:07
Output for 5.5.24
fecha: 2016-05-23 18:20:122016-05-23 18:20:12
Output for 5.4.45
fecha: 2015-09-21 03:50:392015-09-21 03:50:39
Output for 5.4.44
fecha: 2015-09-21 03:50:152015-09-21 03:50:15
Output for 5.4.43
fecha: 2015-09-21 03:49:522015-09-21 03:49:52
Output for 5.4.42
fecha: 2015-09-21 03:49:452015-09-21 03:49:45
Output for 5.4.41
fecha: 2015-09-21 03:49:352015-09-21 03:49:35
Output for 5.4.40
fecha: 2015-09-21 03:49:262015-09-21 03:49:26
Output for 5.4.39
fecha: 2015-09-21 03:49:192015-09-21 03:49:19
Output for 5.4.38
fecha: 2015-03-05 02:39:232015-03-05 02:39:23
Output for 5.4.37
fecha: 2015-03-05 02:39:172015-03-05 02:39:17
Output for 5.4.34 - 5.4.36
fecha: 2015-03-05 02:39:162015-03-05 02:39:16
Output for 5.4.32
fecha: 2014-09-13 22:30:492014-09-13 22:30:49
Output for 5.4.31
fecha: 2014-09-13 22:30:482014-09-13 22:30:48
Output for 5.4.15 - 5.4.30
fecha: 2014-07-15 15:51:152014-07-15 15:51:15
Output for 5.4.0 - 5.4.14
fecha: 2014-07-15 15:51:162014-07-15 15:51:16
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/UBeTs on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/UBeTs on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/UBeTs on line 2
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
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/UBeTs on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/UBeTs on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/UBeTs on line 2 Parse error: parse error in /in/UBeTs on line 2
Process exited with code 255.